diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-01-19 10:11:05 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-01-19 10:11:05 +0000 |
commit | adf0dae1e88fe3c016f0cb5ae3b1690ab145b9fd (patch) | |
tree | 41ea96654c13d3709132d8308f563cbc07e924d0 /src/libmime | |
parent | 6359ef95937cddbc1b0ec3008a0d9a1dd55a0b32 (diff) | |
download | rspamd-adf0dae1e88fe3c016f0cb5ae3b1690ab145b9fd.tar.gz rspamd-adf0dae1e88fe3c016f0cb5ae3b1690ab145b9fd.zip |
[Minor] Print some more stats
Diffstat (limited to 'src/libmime')
-rw-r--r-- | src/libmime/lang_detection.c | 6 |
1 files changed, 5 insertions, 1 deletions
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); |