commit 6d7fce2: [Minor] Log the exact address queried on monitored errors

Vsevolod Stakhov vsevolod at highsecure.ru
Thu Apr 25 16:14:03 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-04-25 17:06:34 +0100
URL: https://github.com/rspamd/rspamd/commit/6d7fce2c1465069b1300c45598fe7a0ae7ccebd4 (HEAD -> master)

[Minor] Log the exact address queried on monitored errors

---
 src/libserver/monitored.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/libserver/monitored.c b/src/libserver/monitored.c
index 08fec9e20..ddef9ffe3 100644
--- a/src/libserver/monitored.c
+++ b/src/libserver/monitored.c
@@ -321,11 +321,12 @@ rspamd_monitored_dns_cb (struct rdns_reply *reply, void *arg)
 					}
 					else {
 						msg_notice_mon ("DNS reply returned '%s' for %s while '%s' "
-									  "was expected "
+									  "was expected when querying for '%s'"
 									  "(likely DNS spoofing or BL internal issues)",
 								rdns_strerror (reply->code),
 								m->url,
-								rdns_strerror (conf->expected_code));
+								rdns_strerror (conf->expected_code),
+								conf->request->str);
 					}
 
 					rspamd_monitored_propagate_error (m, "invalid return");


More information about the Commits mailing list