diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-08-28 16:08:36 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-08-28 16:08:36 +0100 |
commit | c6427acb2bac785a4c006cf64312dd534597cdad (patch) | |
tree | f200a05023c5b7177475e768b6d0612c6c9c6dd6 /src/libserver/cfg_file.h | |
parent | 83098d8daeb7444f14df39b3b4b29e13d56fdd0b (diff) | |
download | rspamd-c6427acb2bac785a4c006cf64312dd534597cdad.tar.gz rspamd-c6427acb2bac785a4c006cf64312dd534597cdad.zip |
Extended config logger.
Diffstat (limited to 'src/libserver/cfg_file.h')
-rw-r--r-- | src/libserver/cfg_file.h | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/src/libserver/cfg_file.h b/src/libserver/cfg_file.h index 49d48033e..a889987fa 100644 --- a/src/libserver/cfg_file.h +++ b/src/libserver/cfg_file.h @@ -308,12 +308,6 @@ const ucl_object_t * rspamd_config_get_module_opt (struct rspamd_config *cfg, const gchar *module_name, const gchar *opt_name); -/** - * Parse limit - * @param limit string representation of limit (eg. 1M) - * @return numeric value of limit - */ -guint64 rspamd_config_parse_limit (const gchar *limit, guint len); /** * Parse flag @@ -454,6 +448,23 @@ gboolean rspamd_config_add_metric_symbol (struct rspamd_config *cfg, gboolean rspamd_config_is_module_enabled (struct rspamd_config *cfg, const gchar *module_name); +#define msg_err_config(...) rspamd_default_log_function (G_LOG_LEVEL_CRITICAL, \ + cfg->cfg_pool->tag.tagname, cfg->cfg_pool->tag.uid, \ + G_STRFUNC, \ + __VA_ARGS__) +#define msg_warn_config(...) rspamd_default_log_function (G_LOG_LEVEL_WARNING, \ + cfg->cfg_pool->tag.tagname, cfg->cfg_pool->tag.uid, \ + G_STRFUNC, \ + __VA_ARGS__) +#define msg_info_config(...) rspamd_default_log_function (G_LOG_LEVEL_INFO, \ + cfg->cfg_pool->tag.tagname, cfg->cfg_pool->tag.uid, \ + G_STRFUNC, \ + __VA_ARGS__) +#define msg_debug_config(...) rspamd_default_log_function (G_LOG_LEVEL_DEBUG, \ + cfg->cfg_pool->tag.tagname, cfg->cfg_pool->tag.uid, \ + G_STRFUNC, \ + __VA_ARGS__) + #endif /* ifdef CFG_FILE_H */ /* * vi:ts=4 |