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 /test | |
parent | ba285a1b84465d7de1bd55e27c9c74a665738416 (diff) | |
download | rspamd-bfe48b659baf0e5007e5fd6b7804881cb92e32fe.tar.gz rspamd-bfe48b659baf0e5007e5fd6b7804881cb92e32fe.zip |
[Fix] Fix logging for rspamadm
Diffstat (limited to 'test')
-rw-r--r-- | test/rspamd_test_suite.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/rspamd_test_suite.c b/test/rspamd_test_suite.c index 4525f8ebc..7d0136708 100644 --- a/test/rspamd_test_suite.c +++ b/test/rspamd_test_suite.c @@ -52,17 +52,18 @@ main (int argc, char **argv) } /* Setup logger */ - rspamd_main->logger = rspamd_log_open_emergency (rspamd_main->server_pool); /* Setup logger */ if (verbose || g_test_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_lua_set_path ((lua_State *)cfg->lua_state, NULL, NULL); |