summaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_file.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-10-21 14:55:19 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-10-21 14:55:19 +0100
commit0261cb3c5f37b3cb6a6a1c5850b11d29838e4e0e (patch)
treea026aae81dcbf301fd959a0f7baf2c7326f9e06e /src/libserver/cfg_file.h
parente3abfdcad00b09fae471e9011839f6242126757a (diff)
downloadrspamd-0261cb3c5f37b3cb6a6a1c5850b11d29838e4e0e.tar.gz
rspamd-0261cb3c5f37b3cb6a6a1c5850b11d29838e4e0e.zip
[Minor] Fix log objects for C++
Diffstat (limited to 'src/libserver/cfg_file.h')
-rw-r--r--src/libserver/cfg_file.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/libserver/cfg_file.h b/src/libserver/cfg_file.h
index e1bc9cfac..7af4b75a9 100644
--- a/src/libserver/cfg_file.h
+++ b/src/libserver/cfg_file.h
@@ -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