From e0639a0d3567c38a64d235f9e77578907e5cc63d Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 24 Dec 2019 16:25:46 +0000 Subject: [PATCH] [Minor] Improve log message --- src/worker.c | 7 +++++-- 1 file 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; -- 2.39.5