]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Print some more stats
authorVsevolod Stakhov <vsevolod@rspamd.com>
Fri, 19 Jan 2024 10:11:05 +0000 (10:11 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Fri, 19 Jan 2024 10:11:05 +0000 (10:11 +0000)
src/libmime/lang_detection.c

index 383005ad10513d497459bb4d232346b523811f57..bdd0aad74b71bc359e87f5b933e3dc6f9b25ec5e 100644 (file)
@@ -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);