From: Vsevolod Stakhov Date: Fri, 19 Jan 2024 10:11:05 +0000 (+0000) Subject: [Minor] Print some more stats X-Git-Tag: 3.8.0~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=adf0dae1e88fe3c016f0cb5ae3b1690ab145b9fd;p=rspamd.git [Minor] Print some more stats --- diff --git a/src/libmime/lang_detection.c b/src/libmime/lang_detection.c index 383005ad1..bdd0aad74 100644 --- a/src/libmime/lang_detection.c +++ b/src/libmime/lang_detection.c @@ -2045,8 +2045,12 @@ rspamd_language_detector_detect(struct rspamd_task *task, cand = g_ptr_array_index(part->languages, 0); if (cand->elt) { cand->elt->occurrences++; + d->total_occurrences++; + + msg_debug_lang_det("updated stat for %s: %d occurrences, %z total detected", + cand->elt->name, cand->elt->occurrences, + d->total_occurrences); } - d->total_occurrences++; } end_ticks = rspamd_get_ticks(TRUE);