aboutsummaryrefslogtreecommitdiffstats
path: root/src/protocol.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-25 12:31:39 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-25 12:31:39 +0300
commit62aaf7da57503a257aecede98ba2ae2e1f2ee3e2 (patch)
treeff6d99673a8ebf08d27716beaf4ea689d4aa98f9 /src/protocol.c
parentf592edf20b6d91fb6c25d9d3b1021d2ab4c5fcb3 (diff)
downloadrspamd-62aaf7da57503a257aecede98ba2ae2e1f2ee3e2.tar.gz
rspamd-62aaf7da57503a257aecede98ba2ae2e1f2ee3e2.zip
* Log scan time and scan length of messages
* Remove 2 memory leaks
Diffstat (limited to 'src/protocol.c')
-rw-r--r--src/protocol.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/protocol.c b/src/protocol.c
index 6230495bf..c9e4925ff 100644
--- a/src/protocol.c
+++ b/src/protocol.c
@@ -24,6 +24,7 @@
#include "config.h"
#include "main.h"
+#include "util.h"
#include "cfg_file.h"
/* Max line size as it is defined in rfc2822 */
@@ -485,7 +486,8 @@ show_metric_result (gpointer metric_name, gpointer metric_value, void *user_data
if (task->cmd == CMD_SYMBOLS && metric_value != NULL) {
show_metric_symbols (metric_res, cd);
}
- cd->log_offset += snprintf (cd->log_buf + cd->log_offset, cd->log_size - cd->log_offset, "] )");
+ cd->log_offset += snprintf (cd->log_buf + cd->log_offset, cd->log_size - cd->log_offset, "] ), len: %ld, time: %ldms",
+ (long int)task->msg->len, calculate_check_time (&task->ts));
}
static int