aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-30 15:29:59 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-30 15:29:59 +0100
commit4eee8ca4617ba181bb8d40704649e3ed2f7cc36c (patch)
tree6310efff66bd060aef71ee6c1d51ccfb1d168248 /src
parent407cafe8c24aaa1190b4d11c3175ffea9c4a8396 (diff)
downloadrspamd-4eee8ca4617ba181bb8d40704649e3ed2f7cc36c.tar.gz
rspamd-4eee8ca4617ba181bb8d40704649e3ed2f7cc36c.zip
Fix logger setup.
Diffstat (limited to 'src')
-rw-r--r--src/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index dfa2e6294..904a9b1e1 100644
--- a/src/main.c
+++ b/src/main.c
@@ -337,16 +337,16 @@ drop_priv (struct rspamd_main *rspamd)
}
static void
-config_logger (struct rspamd_config *cfg, gpointer ud)
+config_logger (rspamd_mempool_t *pool, gpointer ud)
{
struct rspamd_main *rm = ud;
if (config_test) {
/* Explicitly set logger type to console in case of config testing */
- cfg->log_type = RSPAMD_LOG_CONSOLE;
+ rm->cfg->log_type = RSPAMD_LOG_CONSOLE;
}
- rspamd_set_logger (cfg, g_quark_try_string ("main"), rm);
+ rspamd_set_logger (rm->cfg, g_quark_try_string ("main"), rm);
if (rspamd_log_open_priv (rm->logger, rm->workers_uid, rm->workers_gid) == -1) {
fprintf (stderr, "Fatal error, cannot open logfile, exiting\n");
exit (EXIT_FAILURE);