aboutsummaryrefslogtreecommitdiffstats
path: root/src/rspamadm/configtest.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-02-10 20:53:22 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-02-10 21:12:13 +0000
commit3424122c9d082d53e8c437066d34cf602380a69c (patch)
tree85bd4b9503d3a903a55996c3c646f0c4c28195f8 /src/rspamadm/configtest.c
parent7630467d757c27fab944cda366e78ac82d45ff55 (diff)
downloadrspamd-3424122c9d082d53e8c437066d34cf602380a69c.tar.gz
rspamd-3424122c9d082d53e8c437066d34cf602380a69c.zip
[Rework] Logger: Fix issues found so far
Diffstat (limited to 'src/rspamadm/configtest.c')
-rw-r--r--src/rspamadm/configtest.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/rspamadm/configtest.c b/src/rspamadm/configtest.c
index 1ebabe48b..bc7afd9d8 100644
--- a/src/rspamadm/configtest.c
+++ b/src/rspamadm/configtest.c
@@ -77,25 +77,6 @@ rspamadm_configtest_help (gboolean full_help, const struct rspamadm_command *cmd
static void
config_logger (rspamd_mempool_t *pool, gpointer ud)
{
- struct rspamd_main *rm = ud;
- GQuark configtest_quark = g_quark_from_static_string ("configtest");
-
- rm->cfg->log_type = RSPAMD_LOG_CONSOLE;
-
- if (quiet) {
- rm->cfg->log_level = G_LOG_LEVEL_CRITICAL;
- }
- else {
- rm->cfg->log_level = G_LOG_LEVEL_WARNING;
- }
-
- rspamd_set_logger (rm->cfg, configtest_quark, &rm->logger,
- rm->server_pool);
- 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);
- }
}
static void