diff --git a/lib/isccfg/parser.c b/lib/isccfg/parser.c index 23e6ce3bf1..bfdaacdc05 100644 --- a/lib/isccfg/parser.c +++ b/lib/isccfg/parser.c @@ -2669,7 +2669,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);