]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Tell the exact task timeout value
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 21 Jul 2019 08:38:30 +0000 (09:38 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 21 Jul 2019 08:38:30 +0000 (09:38 +0100)
src/worker.c

index 324f211a674d359053b7bf52f7383868c22c8e7c..3a24f6c047224325328d1b923494366e906b1a09 100644 (file)
@@ -141,7 +141,8 @@ 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 timed out, forced processing");
+               msg_info_task ("processing of task time out: %.1f second spent; forced processing",
+                               ev_now (task->event_loop) - task->task_timestamp);
 
                if (task->cfg->soft_reject_on_timeout) {
                        struct rspamd_action *action, *soft_reject;