From: Vsevolod Stakhov Date: Fri, 3 Apr 2015 22:51:39 +0000 (+0100) Subject: Add more verbosity to redirector logging. X-Git-Tag: 0.9.0~339 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d6ba1f99d3fdcd972c61e872c1b52767196d668;p=thirdparty%2Frspamd.git Add more verbosity to redirector logging. Issue: #252 --- diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c index 0401ff932a..6c1731fea0 100644 --- a/src/plugins/surbl.c +++ b/src/plugins/surbl.c @@ -869,12 +869,9 @@ redirector_callback (gint fd, short what, void *arg) gchar url_buf[512]; gint r, urllen; struct timeval *timeout; - struct rspamd_task *task; gchar *p, *c, *urlstr; gboolean found = FALSE; - task = param->task; - switch (param->state) { case STATE_CONNECT: /* We have write readiness after connect call, so reinit event */ @@ -949,7 +946,7 @@ redirector_callback (gint fd, short what, void *arg) } if (found) { - debug_task ("<%s> got reply from redirector: '%s' -> '%s'", + msg_info ("<%s> got reply from redirector: '%s' -> '%s'", param->task->message_id, struri (param->url), c); @@ -969,6 +966,11 @@ redirector_callback (gint fd, short what, void *arg) param->tree); } } + else { + msg_info ("<%s> could not resolve '%s' on redirector", + param->task->message_id, + struri (param->url)); + } } rspamd_upstream_ok (param->redirector); remove_normal_event (param->task->s, free_redirector_session,