Commit 0dc0b029 authored by Evan Hunt's avatar Evan Hunt
Browse files

[master] log query errors at info when query logging is on

3830.	[func]		When query logging is enabled, log query errors at
			the same level ('info') as the queries themselves.
			[RT #35844]
parent cd750f6e
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 3829. [func] "dig +ttlunits" causes dig to print TTL values
with time-unit suffixes: w, d, h, m, s for with time-unit suffixes: w, d, h, m, s for
weeks, days, hours, minutes, and seconds. (Thanks weeks, days, hours, minutes, and seconds. (Thanks
......
...@@ -257,6 +257,9 @@ query_error(ns_client_t *client, isc_result_t result, int line) { ...@@ -257,6 +257,9 @@ query_error(ns_client_t *client, isc_result_t result, int line) {
break; break;
} }
if (ns_g_server->log_queries)
loglevel = ISC_LOG_INFO;
log_queryerror(client, result, line, loglevel); log_queryerror(client, result, line, loglevel);
ns_client_error(client, result); ns_client_error(client, result);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment