diff --git a/sysdep/unix/log.c b/sysdep/unix/log.c index 58554aa2..bdd23459 100644 --- a/sysdep/unix/log.c +++ b/sysdep/unix/log.c @@ -702,7 +702,7 @@ log_switch(int initial, list *logs, const char *new_syslog_name) if (ipa_zero(lc->udp_ip)) { - cf_warn("Cannot resolve hostname '%s': %s", l->udp_host, err_msg); + log(L_WARN "Cannot resolve hostname '%s': %s", l->udp_host, err_msg); goto resolve_fail; } } @@ -717,7 +717,7 @@ log_switch(int initial, list *logs, const char *new_syslog_name) if (sk_open(sk, &main_birdloop) < 0) { - cf_warn("Cannot open UDP log socket: %s%#m", sk->err); + log(L_WARN "Cannot open UDP log socket: %s%#m", sk->err); rfree(sk); resolve_fail: log_lock();