summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-28 18:46:17 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-28 18:46:17 +0100
commitc8dc14acc079a189f41eb2a30d0e4443c5abcce4 (patch)
tree66def2e7b883451b230973476c7f9c3c9f7697da /src
parentdade4926c9330a6ce2c44daeaceceefea6640a00 (diff)
downloadrspamd-c8dc14acc079a189f41eb2a30d0e4443c5abcce4.tar.gz
rspamd-c8dc14acc079a189f41eb2a30d0e4443c5abcce4.zip
Add debug messages to classify metadata.
Diffstat (limited to 'src')
-rw-r--r--src/libstat/stat_process.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libstat/stat_process.c b/src/libstat/stat_process.c
index 91d2e7b8d..f216d964b 100644
--- a/src/libstat/stat_process.c
+++ b/src/libstat/stat_process.c
@@ -73,6 +73,8 @@ rspamd_stat_tokenize_header (struct rspamd_task *task,
g_array_append_val (ar, str);
}
}
+
+ msg_debug ("added stat tokens for header '%s'", name);
}
}
@@ -116,6 +118,8 @@ rspamd_stat_tokenize_parts_metadata (struct rspamd_task *task,
elt.len = strlen (elt.begin);
g_array_append_val (ar, elt);
}
+
+ msg_debug ("added stat tokens for image '%s'", img->html_image->src);
}
cur = g_list_next (cur);
@@ -131,6 +135,7 @@ rspamd_stat_tokenize_parts_metadata (struct rspamd_task *task,
if (elt.begin) {
elt.len = strlen (elt.begin);
+ msg_debug ("added stat tokens for mime boundary '%s'", elt.begin);
g_array_append_val (ar, elt);
}
}
@@ -143,11 +148,13 @@ rspamd_stat_tokenize_parts_metadata (struct rspamd_task *task,
if (tp->language != NULL && tp->language[0] != '\0') {
elt.begin = (gchar *)tp->language;
elt.len = strlen (elt.begin);
+ msg_debug ("added stat tokens for part language '%s'", elt.begin);
g_array_append_val (ar, elt);
}
if (tp->real_charset != NULL) {
elt.begin = (gchar *)tp->real_charset;
elt.len = strlen (elt.begin);
+ msg_debug ("added stat tokens for part charset '%s'", elt.begin);
g_array_append_val (ar, elt);
}
}