From 1a8ca97519e2b3723a17124793f39f97c9489168 Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 27 Aug 2008 05:28:42 +0000 Subject: [PATCH] Don't fill up /var/log/messages when the network is down; log EDNS failures at debug 3. --- dist/bind/lib/dns/resolver.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dist/bind/lib/dns/resolver.c b/dist/bind/lib/dns/resolver.c index 1eb850b2e17e..6d59cabe049d 100644 --- a/dist/bind/lib/dns/resolver.c +++ b/dist/bind/lib/dns/resolver.c @@ -1,4 +1,4 @@ -/* $NetBSD: resolver.c,v 1.7 2008/08/15 14:51:26 he Exp $ */ +/* $NetBSD: resolver.c,v 1.8 2008/08/27 05:28:42 christos Exp $ */ /* * Copyright (C) 2004-2008 Internet Systems Consortium, Inc. ("ISC") @@ -1401,6 +1401,8 @@ static inline void log_edns(fetchctx_t *fctx) { char domainbuf[DNS_NAME_FORMATSIZE]; + if (!isc_log_wouldlog(dns_lctx, ISC_LOG_DEBUG(3))) + return; dns_name_format(&fctx->domain, domainbuf, sizeof(domainbuf)); isc_log_write(dns_lctx, DNS_LOGCATEGORY_EDNS_DISABLED, DNS_LOGMODULE_RESOLVER, ISC_LOG_INFO,