diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-12-24 16:25:46 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-12-24 16:25:46 +0000 |
commit | e0639a0d3567c38a64d235f9e77578907e5cc63d (patch) | |
tree | 7022c1faa97debd23f30041071957e92947d5bf0 | |
parent | 6a425ff3a6aac8dcd663b5d7647e9b372ddee0b6 (diff) | |
download | rspamd-e0639a0d3567c38a64d235f9e77578907e5cc63d.tar.gz rspamd-e0639a0d3567c38a64d235f9e77578907e5cc63d.zip |
[Minor] Improve log message
-rw-r--r-- | src/worker.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/worker.c b/src/worker.c index 8ba221c7a..b825603e1 100644 --- a/src/worker.c +++ b/src/worker.c @@ -108,8 +108,11 @@ rspamd_task_timeout (EV_P_ ev_timer *w, int revents) struct rspamd_task *task = (struct rspamd_task *)w->data; if (!(task->processed_stages & RSPAMD_TASK_STAGE_FILTERS)) { - msg_info_task ("processing of task time out: %.1f second spent; forced processing", - ev_now (task->event_loop) - task->task_timestamp); + ev_now_update_if_cheap (task->event_loop); + msg_info_task ("processing of task time out: %.1f (%.1f limit) second spent; " + "forced processing", + ev_now (task->event_loop) - task->task_timestamp, + task->cfg->task_timeout); if (task->cfg->soft_reject_on_timeout) { struct rspamd_action *action, *soft_reject; |