aboutsummaryrefslogtreecommitdiffstats
path: root/slowcgi.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--slowcgi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/slowcgi.c b/slowcgi.c
index 0b5d62a..307b259 100644
--- a/slowcgi.c
+++ b/slowcgi.c
@@ -1314,6 +1314,9 @@ syslog_debug(const char *fmt, ...)
{
va_list ap;
+ if (!debug)
+ return;
+
va_start(ap, fmt);
vsyslog(LOG_DEBUG, fmt, ap);
va_end(ap);