From 2e1236ad1eb37716c43827df1b8585ce58592e2c Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Thu, 13 Jul 2000 00:30:58 +0000 Subject: [PATCH] Call isc_log_wouldlog() --- lib/dns/zone.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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))