aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-05-06 17:26:42 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-05-06 17:26:42 +0100
commite8b56eb96b2fafea01d96d0f77a4d39c55d67b6b (patch)
treee0a59d5f3302e1a0e2d5e60dc4dc2a04e65e06d0
parent9ffb1a0180e9218d3f3d3178816eaa3cb21b8a61 (diff)
downloadrspamd-e8b56eb96b2fafea01d96d0f77a4d39c55d67b6b.tar.gz
rspamd-e8b56eb96b2fafea01d96d0f77a4d39c55d67b6b.zip
[Minor] Print task pointer to simplify debug
-rw-r--r--src/worker.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/worker.c b/src/worker.c
index 4a646b730..735cbc6a9 100644
--- a/src/worker.c
+++ b/src/worker.c
@@ -277,9 +277,10 @@ accept_socket (gint fd, short what, void *arg)
task = rspamd_task_new (worker, ctx->cfg);
- msg_info_task ("accepted connection from %s port %d",
+ msg_info_task ("accepted connection from %s port %d, task ptr: %p",
rspamd_inet_address_to_string (addr),
- rspamd_inet_address_get_port (addr));
+ rspamd_inet_address_get_port (addr),
+ task);
/* Copy some variables */
if (ctx->is_mime) {