static void
-register_redirector_call (struct uri *url, struct worker_task *task, GTree * url_tree, struct suffix_item *suffix)
+register_redirector_call (struct uri *url, struct worker_task *task, GTree * url_tree,
+ struct suffix_item *suffix, const gchar *rule)
{
gint s = -1;
struct redirector_param *param;
event_add (¶m->ev, timeout);
register_async_event (task->s, free_redirector_session, param, FALSE);
- msg_info ("<%s> registered redirector call for %s to %s", task->message_id, struri (url), selected->name);
+ msg_info ("<%s> registered redirector call for %s to %s, according to rule: %s",
+ task->message_id, struri (url), selected->name, rule);
}
static gboolean
re = g_hash_table_lookup (surbl_module_ctx->redirector_hosts, red_domain);
if (re != NULL && (re == NO_REGEXP || g_regex_match (re, url->string, 0, NULL))) {
/* If no regexp found or founded regexp matches url string register redirector's call */
- register_redirector_call (url, param->task, param->tree, param->suffix);
+ register_redirector_call (url, param->task, param->tree, param->suffix, red_domain);
param->task->save.saved++;
return FALSE;
}
struct rspamd_worker_ctx *ctx;
ctx = task->worker->ctx;
- msg_info ("abnormally closing connection, error: %s", err->message);
+
+ msg_info ("abnormally closing connection from: %s, error: %s", inet_ntoa (task->client_addr), err->message);
/* Free buffers */
if (ctx->is_custom) {
fin_custom_filters (task);