mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
use isc_log_wouldlog() in manager_log()
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
* SOFTWARE.
|
* 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 <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -234,6 +234,9 @@ manager_log(isc_socketmgr_t *sockmgr,
|
|||||||
char msgbuf[2048];
|
char msgbuf[2048];
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
|
||||||
|
if (! isc_log_wouldlog(isc_lctx, level))
|
||||||
|
return;
|
||||||
|
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
vsnprintf(msgbuf, sizeof(msgbuf), fmt, ap);
|
vsnprintf(msgbuf, sizeof(msgbuf), fmt, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
|
Reference in New Issue
Block a user