diff --git a/lib/isccfg/parser.c b/lib/isccfg/parser.c index ee3d5b14d9..05302d5fbc 100644 --- a/lib/isccfg/parser.c +++ b/lib/isccfg/parser.c @@ -2945,7 +2945,7 @@ cfg_obj_log(const cfg_obj_t *obj, isc_log_t *lctx, int level, REQUIRE(obj != NULL); REQUIRE(fmt != NULL); - if (! isc_log_wouldlog(lctx, l)) + if (! isc_log_wouldlog(lctx, level)) return; va_start(ap, fmt);