2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

Call isc_log_wouldlog()

This commit is contained in:
Brian Wellington 2000-07-13 00:30:58 +00:00
parent 945c32833b
commit 2e1236ad1e

View File

@ -15,7 +15,7 @@
* SOFTWARE. * 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 <config.h> #include <config.h>
@ -3360,6 +3360,9 @@ zone_log(dns_zone_t *zone, const char *me, int level, const char *fmt, ...) {
int len; int len;
isc_result_t result = ISC_R_FAILURE; isc_result_t result = ISC_R_FAILURE;
if (isc_log_wouldlog(dns_lctx, level) == ISC_FALSE)
return;
isc_buffer_init(&buffer, namebuf, sizeof(namebuf)); isc_buffer_init(&buffer, namebuf, sizeof(namebuf));
if (dns_name_dynamic(&zone->origin)) if (dns_name_dynamic(&zone->origin))