diff --git a/lib/dns/zone.c b/lib/dns/zone.c index b68971cd9c..2b4f375340 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -15,7 +15,7 @@ * SOFTWARE. */ -/* $Id: zone.c,v 1.156 2000/07/11 22:44:33 gson Exp $ */ +/* $Id: zone.c,v 1.157 2000/07/13 00:30:58 bwelling Exp $ */ #include @@ -3360,6 +3360,9 @@ zone_log(dns_zone_t *zone, const char *me, int level, const char *fmt, ...) { int len; isc_result_t result = ISC_R_FAILURE; + if (isc_log_wouldlog(dns_lctx, level) == ISC_FALSE) + return; + isc_buffer_init(&buffer, namebuf, sizeof(namebuf)); if (dns_name_dynamic(&zone->origin))