From 1b7855b977da0fced44d3b4cedaeb2d56b6d7513 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 7 Oct 2019 16:18:11 +0100 Subject: [Minor] Improve logging reopening --- src/libserver/worker_util.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/libserver/worker_util.c') diff --git a/src/libserver/worker_util.c b/src/libserver/worker_util.c index 154da021f..cdae2cfd2 100644 --- a/src/libserver/worker_util.c +++ b/src/libserver/worker_util.c @@ -200,7 +200,10 @@ rspamd_worker_usr2_handler (struct rspamd_worker_signal_handler *sigh, void *arg static gboolean rspamd_worker_usr1_handler (struct rspamd_worker_signal_handler *sigh, void *arg) { + struct rspamd_main *rspamd_main = sigh->worker->srv; + rspamd_log_reopen (sigh->worker->srv->logger); + msg_info_main ("logging reinitialised"); /* Get more signals */ return TRUE; -- cgit v1.2.3