commit 467d6bd: [Minor] Log some data about tld loading

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Feb 25 17:21:05 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-02-25 17:01:34 +0000
URL: https://github.com/rspamd/rspamd/commit/467d6bd4630ceb2a207e8c78a685fb88a89dfdf7

[Minor] Log some data about tld loading

---
 src/libserver/url.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/libserver/url.c b/src/libserver/url.c
index 13c324e7a..b14d1cfa7 100644
--- a/src/libserver/url.c
+++ b/src/libserver/url.c
@@ -539,8 +539,10 @@ rspamd_url_init (const gchar *tld_file)
 		g_error_free (err);
 	}
 
-	msg_debug ("initialized trie of %ud elements",
-			url_scanner->matchers->len);
+	if (tld_file != NULL) {
+		msg_info ("initialized %ud url tld suffixes from '%s'",
+				url_scanner->matchers->len, tld_file);
+	}
 }
 
 #define SET_U(u, field) do {                                                \


More information about the Commits mailing list