diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-03-25 19:13:20 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-03-25 19:13:20 +0300 |
commit | 99225e6499d32f2415f64cd9d5d4402d3fb78b30 (patch) | |
tree | d682bb084091326bb937fb10350af304cadec5b9 /src/protocol.c | |
parent | 417360dabf785feda65ceb18b05a743402117cdf (diff) | |
download | rspamd-99225e6499d32f2415f64cd9d5d4402d3fb78b30.tar.gz rspamd-99225e6499d32f2415f64cd9d5d4402d3fb78b30.zip |
Write to log number of dns requests per task.
Diffstat (limited to 'src/protocol.c')
-rw-r--r-- | src/protocol.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/protocol.c b/src/protocol.c index f6b0c30fc..edeec92b9 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -821,12 +821,13 @@ show_metric_result (gpointer metric_name, gpointer metric_value, void *user_data } #ifdef HAVE_CLOCK_GETTIME cd->log_offset += rspamd_snprintf (cd->log_buf + cd->log_offset, - cd->log_size - cd->log_offset, "]), len: %z, time: %s,", + cd->log_size - cd->log_offset, "]), len: %z, time: %s, dns req: %d,", task->msg->len, calculate_check_time (&task->tv, &task->ts, - task->cfg->clock_res)); + task->cfg->clock_res), task->dns_requests); #else - cd->log_offset += rspamd_snprintf (cd->log_buf + cd->log_offset, cd->log_size - cd->log_offset, "]), len: %z, time: %s,", - task->msg->len, calculate_check_time (&task->tv, task->cfg->clock_res)); + cd->log_offset += rspamd_snprintf (cd->log_buf + cd->log_offset, cd->log_size - cd->log_offset, + "]), len: %z, time: %s, dns req: %d,", + task->msg->len, calculate_check_time (&task->tv, task->cfg->clock_res), task->dns_requests); #endif } |