diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-05-06 17:26:42 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-05-06 17:26:42 +0100 |
commit | e8b56eb96b2fafea01d96d0f77a4d39c55d67b6b (patch) | |
tree | e0a59d5f3302e1a0e2d5e60dc4dc2a04e65e06d0 | |
parent | 9ffb1a0180e9218d3f3d3178816eaa3cb21b8a61 (diff) | |
download | rspamd-e8b56eb96b2fafea01d96d0f77a4d39c55d67b6b.tar.gz rspamd-e8b56eb96b2fafea01d96d0f77a4d39c55d67b6b.zip |
[Minor] Print task pointer to simplify debug
-rw-r--r-- | src/worker.c | 5 |
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) { |