diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-10-07 16:18:11 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-10-07 16:18:11 +0100 |
commit | 1b7855b977da0fced44d3b4cedaeb2d56b6d7513 (patch) | |
tree | 6303aa96f7fe6bb0b13096c597ed0d041fe19940 /src/libserver/worker_util.c | |
parent | 2568de9762f9244c2d442719a6ec20600e241333 (diff) | |
download | rspamd-1b7855b977da0fced44d3b4cedaeb2d56b6d7513.tar.gz rspamd-1b7855b977da0fced44d3b4cedaeb2d56b6d7513.zip |
[Minor] Improve logging reopening
Diffstat (limited to 'src/libserver/worker_util.c')
-rw-r--r-- | src/libserver/worker_util.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |