aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/addr.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-24 23:31:45 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-24 23:31:45 +0000
commita7e9c6c403bde957b8f07895bb2f7f2b13135fb0 (patch)
tree703c6d5a8bfc859ad70f89016e78632c667ff66b /src/libutil/addr.c
parentd100debaa37a7477fa06bb95ca5087ed70f99cba (diff)
downloadrspamd-a7e9c6c403bde957b8f07895bb2f7f2b13135fb0.tar.gz
rspamd-a7e9c6c403bde957b8f07895bb2f7f2b13135fb0.zip
Add logging macroes with guards
Diffstat (limited to 'src/libutil/addr.c')
-rw-r--r--src/libutil/addr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libutil/addr.c b/src/libutil/addr.c
index f5d1415d9..85568f7c8 100644
--- a/src/libutil/addr.c
+++ b/src/libutil/addr.c
@@ -896,7 +896,7 @@ rspamd_check_port_priority (const char *line, guint default_port,
real_priority = strtoul (err_str + 1, &err_str_prio, 10);
if (err_str_prio && *err_str_prio != '\0') {
- msg_err_pool (
+ msg_err_pool_check (
"cannot parse priority: %s, at symbol %c, error: %s",
line,
*err_str_prio,
@@ -906,7 +906,7 @@ rspamd_check_port_priority (const char *line, guint default_port,
}
}
else if (err_str && *err_str != '\0') {
- msg_err_pool (
+ msg_err_pool_check (
"cannot parse port: %s, at symbol %c, error: %s",
line,
*err_str,
@@ -982,7 +982,7 @@ rspamd_resolve_addrs (const char *begin, size_t len, GPtrArray **addrs,
freeaddrinfo (res);
}
else {
- msg_err_pool ("address resolution for %s failed: %s",
+ msg_err_pool_check ("address resolution for %s failed: %s",
addr_cpy,
gai_strerror (r));
g_free (addr_cpy);
@@ -1028,7 +1028,7 @@ rspamd_parse_host_port_priority (const gchar *str,
p = strchr (str, ']');
if (p == NULL) {
- msg_err ("cannot parse address definition %s: %s",
+ msg_err_pool_check ("cannot parse address definition %s: %s",
str,
strerror (EINVAL));
@@ -1058,7 +1058,7 @@ rspamd_parse_host_port_priority (const gchar *str,
}
if (!rspamd_parse_inet_address (&cur_addr, str, 0)) {
- msg_err_pool ("cannot parse unix socket definition %s: %s",
+ msg_err_pool_check ("cannot parse unix socket definition %s: %s",
str,
strerror (errno));