Don't log "final reference detached" on INFO level

The "final reference detached" message was meant to be DEBUG(1), but was
instead kept at INFO level.  Move it to the DEBUG(1) logging level, so
it's not printed under normal operations.

(cherry picked from commit 1816244725)
This commit is contained in:
Ondřej Surý 2022-11-30 10:46:40 +01:00
parent 06216b0117
commit 343e67ad39
No known key found for this signature in database
GPG key ID: 2820F37E873DEA41

View file

@ -5813,7 +5813,8 @@ dns_zone_detach(dns_zone_t **zonep) {
* Stop things being restarted after we cancel them below.
*/
DNS_ZONE_SETFLAG(zone, DNS_ZONEFLG_EXITING);
dns_zone_log(zone, ISC_LOG_INFO, "final reference detached");
dns_zone_log(zone, ISC_LOG_DEBUG(1),
"final reference detached");
if (zone->task != NULL) {
/*
* This zone has a task; it can clean