diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-12-14 12:33:53 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-12-14 13:42:48 +0000 |
commit | 2a9268f256233fc184a76083a284060391234214 (patch) | |
tree | c42c98c807b20a62ec562f9bb4e0769c270d0ece /src/rspamadm/rspamadm.c | |
parent | e415626203bec3746f7ce9d4d6681e3b938dd05d (diff) | |
download | rspamd-2a9268f256233fc184a76083a284060391234214.tar.gz rspamd-2a9268f256233fc184a76083a284060391234214.zip |
[Rework] Change logger setup interface
Diffstat (limited to 'src/rspamadm/rspamadm.c')
-rw-r--r-- | src/rspamadm/rspamadm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rspamadm/rspamadm.c b/src/rspamadm/rspamadm.c index de1e53143..e242ab925 100644 --- a/src/rspamadm/rspamadm.c +++ b/src/rspamadm/rspamadm.c @@ -281,7 +281,8 @@ main (gint argc, gchar **argv, gchar **env) cfg->log_level = G_LOG_LEVEL_WARNING; cfg->log_type = RSPAMD_LOG_CONSOLE; - rspamd_set_logger (cfg, process_quark, rspamd_main); + rspamd_set_logger (cfg, process_quark, &rspamd_main->logger, + rspamd_main->server_pool); (void) rspamd_log_open (rspamd_main->logger); g_log_set_default_handler (rspamd_glib_log_function, rspamd_main->logger); g_set_printerr_handler (rspamd_glib_printerr_function); |