diff options
Diffstat (limited to 'src/logger.h')
-rw-r--r-- | src/logger.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/logger.h b/src/logger.h index 8e517541e..fe6e0bda5 100644 --- a/src/logger.h +++ b/src/logger.h @@ -66,7 +66,7 @@ void rspamd_conditional_debug (uint32_t addr, const char *function, const char * /* Typical functions */ /* Logging in postfix style */ -#if (defined(RSPAMD_MAIN) || defined(RSPAMD_LIB)) +#if (defined(RSPAMD_MAIN) || defined(RSPAMD_LIB) || defined(RSPAMD_TEST)) #define msg_err(args...) rspamd_common_log_function(G_LOG_LEVEL_CRITICAL, __FUNCTION__, ##args) #define msg_warn(args...) rspamd_common_log_function(G_LOG_LEVEL_WARNING, __FUNCTION__, ##args) #define msg_info(args...) rspamd_common_log_function(G_LOG_LEVEL_INFO, __FUNCTION__, ##args) |