]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Call isc_log_wouldlog to potentially avoid extra work in validator_log.
authorBrian Wellington <source@isc.org>
Wed, 26 Jul 2000 00:50:02 +0000 (00:50 +0000)
committerBrian Wellington <source@isc.org>
Wed, 26 Jul 2000 00:50:02 +0000 (00:50 +0000)
lib/dns/validator.c

index 2910f1c91af99afe1f2fd8bc4dc23e15e1a4ecb6..05eec8d584b04c173bd7ac9b08f5dde9cdb03f7f 100644 (file)
@@ -15,7 +15,7 @@
  * SOFTWARE.
  */
 
-/* $Id: validator.c,v 1.66 2000/07/25 01:24:18 bwelling Exp $ */
+/* $Id: validator.c,v 1.67 2000/07/26 00:50:02 bwelling Exp $ */
 
 #include <config.h>
 
@@ -1525,6 +1525,10 @@ static void
 validator_log(dns_validator_t *val, int level, const char *fmt, ...)
 {
         va_list ap;
+
+       if (! isc_log_wouldlog(dns_lctx, level))
+               return;
+
        va_start(ap, fmt);
        validator_logv(val, DNS_LOGCATEGORY_DNSSEC,
                       DNS_LOGMODULE_VALIDATOR, level, fmt, ap);