/* Error state */
msg_err_task ("got error on IO with server %s(%s), on %s, %d, %s",
rspamd_upstream_name (session->server),
- rspamd_inet_address_to_string (session->addr),
+ rspamd_inet_address_to_string_pretty (session->addr),
session->state == 1 ? "read" : "write",
errno,
strerror (errno));
if (session->retransmits >= fuzzy_module_ctx->retransmits) {
msg_err_task ("got IO timeout with server %s(%s), after %d retransmits",
rspamd_upstream_name (session->server),
- rspamd_inet_address_to_string (session->addr),
+ rspamd_inet_address_to_string_pretty (session->addr),
session->retransmits);
rspamd_upstream_fail (session->server);
rspamd_session_remove_event (session->task->s, fuzzy_io_fin, session);
else if (ret == return_error) {
msg_err_task ("got error in IO with server %s(%s), %d, %s",
rspamd_upstream_name (session->server),
- rspamd_inet_address_to_string (session->addr),
+ rspamd_inet_address_to_string_pretty (session->addr),
errno, strerror (errno));
rspamd_upstream_fail (session->server);
}
msg_err_task_check ("got IO timeout with server %s(%s), "
"after %d retransmits",
rspamd_upstream_name (session->server),
- rspamd_inet_address_to_string (session->addr),
+ rspamd_inet_address_to_string_pretty (session->addr),
session->retransmits);
if (session->session) {
if ((sock = rspamd_inet_address_connect (addr, SOCK_DGRAM, TRUE)) == -1) {
msg_warn_task ("cannot connect to %s(%s), %d, %s",
rspamd_upstream_name (selected),
- rspamd_inet_address_to_string (addr),
+ rspamd_inet_address_to_string_pretty (addr),
errno,
strerror (errno));
rspamd_upstream_fail (selected);