commit 561c578: [Minor] Langdet: Improve debugging slightly

Vsevolod Stakhov vsevolod at highsecure.ru
Wed Jun 5 13:14:03 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-06-05 14:09:42 +0100
URL: https://github.com/rspamd/rspamd/commit/561c57859d7a2c04e836ceaa6d1a554e82a43766 (HEAD -> master)

[Minor] Langdet: Improve debugging slightly

---
 src/libmime/lang_detection.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/libmime/lang_detection.c b/src/libmime/lang_detection.c
index 0312d009b..bb00fb31d 100644
--- a/src/libmime/lang_detection.c
+++ b/src/libmime/lang_detection.c
@@ -1675,6 +1675,9 @@ rspamd_language_detector_try_stop_words (struct rspamd_task *task,
 			ret = TRUE;
 		}
 	}
+	else {
+		msg_debug_lang_det ("found no stop words in a text");
+	}
 
 	kh_destroy (rspamd_sw_hash, cbdata.res);
 


More information about the Commits mailing list