diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-01-06 19:18:40 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-01-06 19:18:40 +0000 |
commit | bfe48b659baf0e5007e5fd6b7804881cb92e32fe (patch) | |
tree | 46ef176183d8b2bd12bf7d538b9a578ba16c2ce0 /src/rspamadm | |
parent | ba285a1b84465d7de1bd55e27c9c74a665738416 (diff) | |
download | rspamd-bfe48b659baf0e5007e5fd6b7804881cb92e32fe.tar.gz rspamd-bfe48b659baf0e5007e5fd6b7804881cb92e32fe.zip |
[Fix] Fix logging for rspamadm
Diffstat (limited to 'src/rspamadm')
-rw-r--r-- | src/rspamadm/rspamadm.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/rspamadm/rspamadm.c b/src/rspamadm/rspamadm.c index 5de5e677a..94fa4881d 100644 --- a/src/rspamadm/rspamadm.c +++ b/src/rspamadm/rspamadm.c @@ -438,18 +438,17 @@ main (gint argc, gchar **argv, gchar **env) exit (1); } - /* Setup logger */ - rspamd_main->logger = rspamd_log_open_emergency (rspamd_main->server_pool); /* Setup logger */ if (verbose) { - rspamd_log_set_log_level (rspamd_main->logger, G_LOG_LEVEL_DEBUG); - rspamd_log_set_log_flags (rspamd_main->logger, + rspamd_main->logger = rspamd_log_open_emergency (rspamd_main->server_pool, RSPAMD_LOG_FLAG_USEC|RSPAMD_LOG_FLAG_ENFORCED|RSPAMD_LOG_FLAG_RSPAMADM); + rspamd_log_set_log_level (rspamd_main->logger, G_LOG_LEVEL_DEBUG); } else { + rspamd_main->logger = rspamd_log_open_emergency (rspamd_main->server_pool, + RSPAMD_LOG_FLAG_RSPAMADM); rspamd_log_set_log_level (rspamd_main->logger, G_LOG_LEVEL_MESSAGE); - rspamd_log_set_log_flags (rspamd_main->logger,RSPAMD_LOG_FLAG_RSPAMADM); } rspamd_main->event_loop = ev_default_loop (EVFLAG_SIGNALFD|EVBACKEND_ALL); |