Move keypress logging behind the DLP_Log verbose option
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#include <rfb/LogWriter.h>
|
||||
#include <rfb/Logger_stdio.h>
|
||||
#include <rfb/Logger_syslog.h>
|
||||
#include <rfb/ServerCore.h>
|
||||
|
||||
#include "RFBGlue.h"
|
||||
|
||||
@@ -89,6 +90,20 @@ void vncLogDebug(const char *name, const char *format, ...)
|
||||
va_end(ap);
|
||||
}
|
||||
|
||||
void vncLogDLPVerbose(const char *name, const char *format, ...)
|
||||
{
|
||||
if (Server::DLP_ClipLog[0] != 'v')
|
||||
return;
|
||||
LogWriter *vlog;
|
||||
va_list ap;
|
||||
vlog = LogWriter::getLogWriter(name);
|
||||
if (vlog == NULL)
|
||||
return;
|
||||
va_start(ap, format);
|
||||
vlog->vdebug(format, ap);
|
||||
va_end(ap);
|
||||
}
|
||||
|
||||
int vncSetParam(const char *name, const char *value)
|
||||
{
|
||||
if (value != NULL)
|
||||
|
||||
Reference in New Issue
Block a user