diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-01-23 19:09:28 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-01-23 19:09:28 +0000 |
commit | 451aaaa219127ed170490510ce68907ee22acfc1 (patch) | |
tree | 73f17ce51b7417c6dade9a5869c56ec5cb97ca40 | |
parent | f5942ac84b940d370ab3a6c57fab7fd6454537ab (diff) | |
download | rspamd-451aaaa219127ed170490510ce68907ee22acfc1.tar.gz rspamd-451aaaa219127ed170490510ce68907ee22acfc1.zip |
[Minor] Show more stats about ngramms
-rw-r--r-- | src/libmime/lang_detection.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libmime/lang_detection.c b/src/libmime/lang_detection.c index 1f7de8fb9..3eeb9829f 100644 --- a/src/libmime/lang_detection.c +++ b/src/libmime/lang_detection.c @@ -401,7 +401,12 @@ rspamd_language_detector_init (struct rspamd_config *cfg) g_free (fname); } - msg_info_config ("loaded %d languages", (gint)ret->languages->len); + msg_info_config ("loaded %d languages, %d unigramms, %d bigramms, " + "%d trigramms", + (gint)ret->languages->len, + g_hash_table_size (ret->unigramms), + g_hash_table_size (ret->bigramms), + g_hash_table_size (ret->trigramms)); end: if (gl.gl_pathc > 0) { globfree (&gl); |