diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-31 16:50:43 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-31 16:50:43 +0100 |
commit | 198275f8aa1c6c80e79c9caf63433c4264a90253 (patch) | |
tree | 6a0a08799dce144edf36294b91204ca5ac430a94 /src/libserver | |
parent | 9f626b1f79ed3efa8078a6913e49c0b9caea7288 (diff) | |
download | rspamd-198275f8aa1c6c80e79c9caf63433c4264a90253.tar.gz rspamd-198275f8aa1c6c80e79c9caf63433c4264a90253.zip |
[Minor] Add hostname debugging to the milter
Diffstat (limited to 'src/libserver')
-rw-r--r-- | src/libserver/milter.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libserver/milter.c b/src/libserver/milter.c index 3a3f9af14..70ccdd942 100644 --- a/src/libserver/milter.c +++ b/src/libserver/milter.c @@ -331,10 +331,14 @@ rspamd_milter_process_command (struct rspamd_milter_session *session, */ if (session->hostname == NULL) { session->hostname = rspamd_fstring_new_init (pos, zero - pos); + msg_debug_milter ("got hostname on connect phase: %V", + session->hostname); } else { session->hostname = rspamd_fstring_assign (session->hostname, pos, zero - pos); + msg_debug_milter ("rewrote hostname on connect phase: %V", + session->hostname); } pos = zero + 1; |