mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-01-03 07:31:54 +00:00
Calling cf_warn from log_switch makes no sense
This commit is contained in:
parent
e70207b281
commit
3e21e1f9a0
@ -702,7 +702,7 @@ log_switch(int initial, list *logs, const char *new_syslog_name)
|
|||||||
|
|
||||||
if (ipa_zero(lc->udp_ip))
|
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;
|
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)
|
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);
|
rfree(sk);
|
||||||
resolve_fail:
|
resolve_fail:
|
||||||
log_lock();
|
log_lock();
|
||||||
|
Loading…
Reference in New Issue
Block a user