]> source.dussan.org Git - rspamd.git/commitdiff
Log debug messages from libraries.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 26 Nov 2013 14:53:27 +0000 (14:53 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 26 Nov 2013 14:53:27 +0000 (14:53 +0000)
src/logger.h

index 46bf31a9636e1c362f7998297ce0970037ca9dfe..676b3013190a09aa00470ca37f044e2fcbc8706f 100644 (file)
@@ -102,7 +102,7 @@ void rspamd_log_nodebug (rspamd_logger_t *logger);
 #define msg_err(...)   rspamd_default_log_function(G_LOG_LEVEL_CRITICAL, __FUNCTION__, __VA_ARGS__)
 #define msg_warn(...)  rspamd_default_log_function(G_LOG_LEVEL_WARNING, __FUNCTION__, __VA_ARGS__)
 #define msg_info(...)  rspamd_default_log_function(G_LOG_LEVEL_INFO, __FUNCTION__, __VA_ARGS__)
-#define msg_debug(...) do {} while(0)
+#define msg_debug(...) rspamd_default_log_function(G_LOG_LEVEL_DEBUG, __FUNCTION__, __VA_ARGS__)
 #define debug_task(...) do {} while(0)
 #endif