diff --git a/lib/ns/client.c b/lib/ns/client.c index 15a4c9c480..c994c4c495 100644 --- a/lib/ns/client.c +++ b/lib/ns/client.c @@ -916,10 +916,10 @@ ns_client_error(ns_client_t *client, isc_result_t result) { sizeof(log_buf)); if (rrl_result != DNS_RRL_RESULT_OK) { /* - * Log dropped errors in the query category + * Log dropped errors in the query-errors category * so that they are not lost in silence. * Starts of rate-limited bursts are logged in - * NS_LOGCATEGORY_RRL. + * DNS_LOGCATEGORY_RRL. */ if (wouldlog) { ns_client_log(client, diff --git a/lib/ns/query.c b/lib/ns/query.c index ed13b11a13..69812db8a5 100644 --- a/lib/ns/query.c +++ b/lib/ns/query.c @@ -7236,7 +7236,7 @@ query_checkrrl(query_ctx_t *qctx, isc_result_t result) { wouldlog, log_buf, sizeof(log_buf)); if (rrl_result != DNS_RRL_RESULT_OK) { /* - * Log dropped or slipped responses in the query + * Log dropped or slipped responses in the query-errors * category so that requests are not silently lost. * Starts of rate-limited bursts are logged in * DNS_LOGCATEGORY_RRL. @@ -7246,7 +7246,8 @@ query_checkrrl(query_ctx_t *qctx, isc_result_t result) { * with other truncated responses in RespTruncated. */ if (wouldlog) { - ns_client_log(qctx->client, DNS_LOGCATEGORY_RRL, + ns_client_log(qctx->client, + NS_LOGCATEGORY_QUERY_ERRORS, NS_LOGMODULE_QUERY, DNS_RRL_LOG_DROP, "%s", log_buf); }