]> source.dussan.org Git - rspamd.git/commitdiff
Add more verbosity to redirector logging.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 3 Apr 2015 22:51:39 +0000 (23:51 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 3 Apr 2015 22:51:39 +0000 (23:51 +0100)
Issue: #252

src/plugins/surbl.c

index 0401ff932a50bd4e686c53241e05a669edc81612..6c1731fea050ddbfabcb57d1ac0752d6aaef5fad 100644 (file)
@@ -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,