From 0072e42780cda66e72303bb6449a9ad8bbbc8fe4 Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Thu, 13 Jul 2000 01:38:40 +0000 Subject: [PATCH] use isc_log_wouldlog() in manager_log() --- lib/isc/unix/socket.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/isc/unix/socket.c b/lib/isc/unix/socket.c index f666db91d3..ce57288544 100644 --- a/lib/isc/unix/socket.c +++ b/lib/isc/unix/socket.c @@ -15,7 +15,7 @@ * SOFTWARE. */ -/* $Id: socket.c,v 1.150 2000/07/13 01:22:56 bwelling Exp $ */ +/* $Id: socket.c,v 1.151 2000/07/13 01:38:40 gson Exp $ */ #include @@ -234,6 +234,9 @@ manager_log(isc_socketmgr_t *sockmgr, char msgbuf[2048]; va_list ap; + if (! isc_log_wouldlog(isc_lctx, level)) + return; + va_start(ap, fmt); vsnprintf(msgbuf, sizeof(msgbuf), fmt, ap); va_end(ap);