aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/protocol.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-16 16:28:23 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-16 16:28:23 +0100
commitf67992f32cfc9a76b21b1e5681ecb7698c97e1fb (patch)
tree8466a065b99e30fa8cd72c673c8cf5b3b07f6495 /src/libserver/protocol.c
parentbf413daf8a1a1fb38cbe3bde214f3c7b7e2d5f43 (diff)
downloadrspamd-f67992f32cfc9a76b21b1e5681ecb7698c97e1fb.tar.gz
rspamd-f67992f32cfc9a76b21b1e5681ecb7698c97e1fb.zip
Print IP address in logs.
Diffstat (limited to 'src/libserver/protocol.c')
-rw-r--r--src/libserver/protocol.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libserver/protocol.c b/src/libserver/protocol.c
index 7ee5491f8..d585f9ce6 100644
--- a/src/libserver/protocol.c
+++ b/src/libserver/protocol.c
@@ -1052,9 +1052,10 @@ rspamd_protocol_write_ucl (struct rspamd_task *task, GString *logbuf)
if (logbuf != NULL) {
rspamd_printf_gstring (logbuf,
- "id: <%s>, qid: <%s>, ",
+ "id: <%s>, qid: <%s>, ip: %s, ",
task->message_id,
- task->queue_id);
+ task->queue_id,
+ rspamd_inet_address_to_string (task->from_addr));
if (task->user) {
rspamd_printf_gstring (logbuf, "user: %s, ", task->user);