summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-05-15 16:35:49 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-05-15 16:35:49 +0100
commitc417640a97de531729be6fc96654775aca4bda33 (patch)
treec2ea475d083407be0dcc6c9e73d1eacc1d02e0e3
parentbef95e1cd69b0657bf1881b9b7d4d71f381c4560 (diff)
downloadrspamd-c417640a97de531729be6fc96654775aca4bda33.tar.gz
rspamd-c417640a97de531729be6fc96654775aca4bda33.zip
[Minor] Further logging improvements
-rw-r--r--src/libutil/map.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libutil/map.c b/src/libutil/map.c
index 970a7d1d7..cd5e176e8 100644
--- a/src/libutil/map.c
+++ b/src/libutil/map.c
@@ -321,7 +321,9 @@ http_map_error (struct rspamd_http_connection *conn,
cbd->periodic->errored = TRUE;
msg_err_map ("error reading %s(%s): "
"connection with http server terminated incorrectly: %e",
- map->name, cbd->bk->uri, err);
+ cbd->bk->uri,
+ cbd->addr ? rspamd_inet_address_to_string_pretty (cbd->addr) : "",
+ err);
rspamd_map_periodic_callback (-1, EV_TIMEOUT, cbd->periodic);
MAP_RELEASE (cbd, "http_callback_data");
}