]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
use more generic log module name for 'logtoomanyrecords'
authorJINMEI Tatuya <jtatuya@infoblox.com>
Wed, 18 Sep 2024 06:32:21 +0000 (15:32 +0900)
committerMark Andrews <marka@isc.org>
Tue, 26 Nov 2024 04:06:58 +0000 (04:06 +0000)
DNS_LOGMODULE_RBTDB was simply inappropriate, and this
log message is actually dependent on db implementation
details, so DNS_LOGMODULE_DB would be the best choice.

lib/dns/db.c

index 366367d12b3eab25b71054cd189e475b42e10645..8add76f644151f24fab55b0e36ae3105d24a751c 100644 (file)
@@ -1197,7 +1197,7 @@ dns__db_logtoomanyrecords(dns_db_t *db, const dns_name_t *name,
        dns_rdataclass_format(db->rdclass, clsbuf, sizeof(clsbuf));
 
        isc_log_write(
-               DNS_LOGCATEGORY_DATABASE, DNS_LOGMODULE_RBTDB, ISC_LOG_ERROR,
+               DNS_LOGCATEGORY_DATABASE, DNS_LOGMODULE_DB, ISC_LOG_ERROR,
                "error %s '%s/%s' in '%s/%s' (%s): %s (must not exceed %u)", op,
                namebuf, typebuf, originbuf, clsbuf,
                (db->attributes & DNS_DBATTR_CACHE) != 0 ? "cache" : "zone",