summarylogtreecommitdiffstats
path: root/logging.patch
blob: f844e63e95c2e993a827e5a0f339918f0f2e22d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- src/logging.hh
+++ src/logging.hh
@@ -93,7 +93,7 @@
 #define dump_log(...) logger.write(__VA_ARGS__)
 
 #ifdef DEBUG_ENABLED
-    #define debug(format,args...) dump_log(Debug, "%s:%d in %s(): "format, __FILE__, __LINE__, __FUNCTION__, ## args)
+    #define debug(format, ...) logger.write(Debug, "%s:%d in %s(): " format, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__)
 #else
     #define debug(format,args...)
 #endif