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:
parent
945c32833b
commit
2e1236ad1e
@ -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 <config.h>
|
||||
|
||||
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user