Move keypress logging behind the DLP_Log verbose option

This commit is contained in:
Lauri Kasanen
2022-10-13 13:39:49 +03:00
parent 0ef8a51945
commit 17cd5e597a
4 changed files with 22 additions and 3 deletions

View File

@@ -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)