commit e0639a0: [Minor] Improve log message
Vsevolod Stakhov
vsevolod at highsecure.ru
Tue Dec 24 17:07:06 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-12-24 16:25:46 +0000
URL: https://github.com/rspamd/rspamd/commit/e0639a0d3567c38a64d235f9e77578907e5cc63d
[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;
More information about the Commits
mailing list