From: Vsevolod Stakhov Date: Fri, 6 May 2016 16:26:42 +0000 (+0100) Subject: [Minor] Print task pointer to simplify debug X-Git-Tag: 1.3.0~531 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e8b56eb96b2fafea01d96d0f77a4d39c55d67b6b;p=thirdparty%2Frspamd.git [Minor] Print task pointer to simplify debug --- diff --git a/src/worker.c b/src/worker.c index 4a646b730e..735cbc6a9c 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) {