0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-10-18 18:08:45 +00:00

Calling cf_warn from log_switch makes no sense

This commit is contained in:
Maria Matejka 2024-08-26 18:09:46 +02:00
parent e70207b281
commit 3e21e1f9a0

View File

@ -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();