summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <tpearson@raptorengineering.com>2019-03-02 19:55:35 -0600
committerTimothy Pearson <tpearson@raptorengineering.com>2019-03-02 19:57:37 -0600
commit98d614012977946d61d56ac0e44f3c7708e40ba0 (patch)
tree8a104f60bfff5b574a053528104330bbc6c23269
parent6189a340b0528dfdf5fcb78317aaf259aaa5984d (diff)
downloadxrdp-proprietary-98d614012977946d61d56ac0e44f3c7708e40ba0.tar.gz
xrdp-proprietary-98d614012977946d61d56ac0e44f3c7708e40ba0.zip
Disable chanserv logging by default
-rw-r--r--sesman/chansrv/chansrv.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sesman/chansrv/chansrv.c b/sesman/chansrv/chansrv.c
index 3a99cf6c..12ee23b5 100644
--- a/sesman/chansrv/chansrv.c
+++ b/sesman/chansrv/chansrv.c
@@ -63,12 +63,15 @@ int g_rdpsnd_chan_id = -1; /* rdpsnd */
int g_rdpdr_chan_id = -1; /* rdpdr */
int g_rail_chan_id = -1; /* rail */
-#if 0
+// #define ENABLE_CHANSERV_DEBUG_LOGGING
+
+//#if 0
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
void dprint(const char *fmt, ...)
{
+#ifdef ENABLE_CHANSERV_DEBUG_LOGGING
va_list argp;
va_start(argp, fmt);
char debug[1024];
@@ -80,6 +83,7 @@ void dprint(const char *fmt, ...)
fclose(fp);
}
va_end(argp);
+#endif
}
#undef LOG
#define LOG(_a, _params) \
@@ -87,7 +91,6 @@ void dprint(const char *fmt, ...)
dprint _params; \
dprint("\n"); \
}
-#endif
char *g_exec_name;
tbus g_exec_event;