Skip to content
Snippets Groups Projects
Commit bc36bddb authored by Libor Peltan's avatar Libor Peltan
Browse files

notify: fixed logging in case of error

parent 54a151ec
No related branches found
No related tags found
2 merge requests!991adjust: with incremental upd, also adjust new ENTs,!989notify: fixed logging in case of error
Pipeline #46223 passed with warnings
......@@ -107,7 +107,7 @@ static int send_notify(conf_t *conf, zone_t *zone, const knot_rrset_t *soa,
int ret = knot_requestor_exec(&requestor, req, timeout);
if (ret == KNOT_EOK) {
if (ret == KNOT_EOK && knot_pkt_ext_rcode(req->resp) == 0) {
NOTIFY_LOG(LOG_INFO, zone->name, dst,
"serial %u", knot_soa_serial(soa->rrs.rdata));
} else if (knot_pkt_ext_rcode(req->resp) == 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment