diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-16 16:13:43 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-16 16:13:43 +0400 |
commit | 561d5f4c2424f2ff4b1066d1efb308ddcc8aa06b (patch) | |
tree | 0787767907c096a5440bd526edab417bae7db669 /src/protocol.c | |
parent | be9387183439cea52013c97fa1e047c1d7ac472f (diff) | |
download | rspamd-561d5f4c2424f2ff4b1066d1efb308ddcc8aa06b.tar.gz rspamd-561d5f4c2424f2ff4b1066d1efb308ddcc8aa06b.zip |
* Add more debug to comparing parts distance function
* Write action even if message has no symbols
Diffstat (limited to 'src/protocol.c')
-rw-r--r-- | src/protocol.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/protocol.c b/src/protocol.c index f4e95b40f..7d26d6c80 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -681,9 +681,10 @@ show_metric_result (gpointer metric_name, gpointer metric_value, void *user_data else { r = rspamd_snprintf (outbuf, sizeof (outbuf), "Metric: default; False; 0 / %.2f" CRLF, ms); } + r += rspamd_snprintf (outbuf + r, sizeof (outbuf) - r, "Action: %s" CRLF, str_action_metric (METRIC_ACTION_NOACTION)); } if (!task->is_skipped) { - cd->log_offset += rspamd_snprintf (cd->log_buf + cd->log_offset, cd->log_size - cd->log_offset, "(%s: F: [0/%.2f/%.2f] [", "default", ms, rs); + cd->log_offset += rspamd_snprintf (cd->log_buf + cd->log_offset, cd->log_size - cd->log_offset, "(%s: F (no action): [0/%.2f/%.2f] [", "default", ms, rs); } else { cd->log_offset += rspamd_snprintf (cd->log_buf + cd->log_offset, cd->log_size - cd->log_offset, "(%s: S: [0/%.2f/%.2f] [", "default", ms, rs); |