]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[master] log query errors at info when query logging is on
authorEvan Hunt <each@isc.org>
Wed, 30 Apr 2014 00:04:21 +0000 (17:04 -0700)
committerEvan Hunt <each@isc.org>
Wed, 30 Apr 2014 00:04:21 +0000 (17:04 -0700)
3830. [func] When query logging is enabled, log query errors at
the same level ('info') as the queries themselves.
[RT #35844]

CHANGES
bin/named/query.c

diff --git a/CHANGES b/CHANGES
index cc4f9972b414ac12b6da438932cc1fadd924e675..fc2d1f50188846d9654a9ea09df48a1e5c86cabb 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,7 @@
+3830.  [func]          When query logging is enabled, log query errors at
+                       the same level ('info') as the queries themselves.
+                       [RT #35844]
+
 3829.  [func]          "dig +ttlunits" causes dig to print TTL values
                        with time-unit suffixes: w, d, h, m, s for
                        weeks, days, hours, minutes, and seconds. (Thanks
index 5d16961e2be46ea29da2c624974892d0608a99e8..9b1fcbf609dbc9efadc67ed912fca83f83103214 100644 (file)
@@ -257,6 +257,9 @@ query_error(ns_client_t *client, isc_result_t result, int line) {
                break;
        }
 
+       if (ns_g_server->log_queries)
+               loglevel = ISC_LOG_INFO;
+
        log_queryerror(client, result, line, loglevel);
 
        ns_client_error(client, result);