]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix log objects for C++
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 21 Oct 2021 13:55:19 +0000 (14:55 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 21 Oct 2021 13:55:19 +0000 (14:55 +0100)
src/libserver/cfg_file.h
src/libserver/worker_util.h

index e1bc9cfac93523734cdda33fe59520fef816007b..7af4b75a9fb5d48f52e056cf2c2e351b8a83550a 100644 (file)
@@ -841,26 +841,27 @@ gboolean rspamd_ip_is_local_cfg (struct rspamd_config *cfg,
 gboolean rspamd_config_libs (struct rspamd_external_libs_ctx *ctx,
                                                         struct rspamd_config *cfg);
 
+
 #define msg_err_config(...) rspamd_default_log_function (G_LOG_LEVEL_CRITICAL, \
         cfg->cfg_pool->tag.tagname, cfg->checksum, \
-        G_STRFUNC, \
+        RSPAMD_LOG_FUNC, \
         __VA_ARGS__)
 #define msg_err_config_forced(...) rspamd_default_log_function (G_LOG_LEVEL_CRITICAL|RSPAMD_LOG_FORCED, \
         cfg->cfg_pool->tag.tagname, cfg->checksum, \
-        G_STRFUNC, \
+        RSPAMD_LOG_FUNC, \
         __VA_ARGS__)
 #define msg_warn_config(...)   rspamd_default_log_function (G_LOG_LEVEL_WARNING, \
         cfg->cfg_pool->tag.tagname, cfg->checksum, \
-        G_STRFUNC, \
+        RSPAMD_LOG_FUNC, \
         __VA_ARGS__)
 #define msg_info_config(...)   rspamd_default_log_function (G_LOG_LEVEL_INFO, \
         cfg->cfg_pool->tag.tagname, cfg->checksum, \
-        G_STRFUNC, \
+        RSPAMD_LOG_FUNC, \
         __VA_ARGS__)
 extern guint rspamd_config_log_id;
 #define msg_debug_config(...)  rspamd_conditional_debug_fast (NULL, NULL, \
         rspamd_config_log_id, "config", cfg->checksum, \
-        G_STRFUNC, \
+        RSPAMD_LOG_FUNC, \
         __VA_ARGS__)
 
 #ifdef  __cplusplus
index 67d598b8899357a6fbfa86cd898adf2de818626d..a67a966ca04959784725144cd180290e1a1910a6 100644 (file)
@@ -292,19 +292,19 @@ gboolean rspamd_worker_hyperscan_ready (struct rspamd_main *rspamd_main,
 
 #define msg_err_main(...) rspamd_default_log_function (G_LOG_LEVEL_CRITICAL, \
         rspamd_main->server_pool->tag.tagname, rspamd_main->server_pool->tag.uid, \
-        G_STRFUNC, \
+        RSPAMD_LOG_FUNC, \
         __VA_ARGS__)
 #define msg_warn_main(...)   rspamd_default_log_function (G_LOG_LEVEL_WARNING, \
         rspamd_main->server_pool->tag.tagname, rspamd_main->server_pool->tag.uid, \
-        G_STRFUNC, \
+        RSPAMD_LOG_FUNC, \
         __VA_ARGS__)
 #define msg_notice_main(...)   rspamd_default_log_function (G_LOG_LEVEL_MESSAGE, \
         rspamd_main->server_pool->tag.tagname, rspamd_main->server_pool->tag.uid, \
-        G_STRFUNC, \
+        RSPAMD_LOG_FUNC, \
         __VA_ARGS__)
 #define msg_info_main(...)   rspamd_default_log_function (G_LOG_LEVEL_INFO, \
         rspamd_main->server_pool->tag.tagname, rspamd_main->server_pool->tag.uid, \
-        G_STRFUNC, \
+        RSPAMD_LOG_FUNC, \
         __VA_ARGS__)
 
 #ifdef  __cplusplus