mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
make macro name match category name
This commit is contained in:
@@ -1338,7 +1338,7 @@ ns_client_error(ns_client_t *client, isc_result_t result) {
|
||||
*/
|
||||
if (wouldlog) {
|
||||
ns_client_log(client,
|
||||
NS_LOGCATEGORY_QUERY_EERRORS,
|
||||
NS_LOGCATEGORY_QUERY_ERRORS,
|
||||
NS_LOGMODULE_CLIENT,
|
||||
loglevel,
|
||||
"%s", log_buf);
|
||||
|
@@ -36,7 +36,7 @@
|
||||
#define NS_LOGCATEGORY_QUERIES (&ns_g_categories[4])
|
||||
#define NS_LOGCATEGORY_UNMATCHED (&ns_g_categories[5])
|
||||
#define NS_LOGCATEGORY_UPDATE_SECURITY (&ns_g_categories[6])
|
||||
#define NS_LOGCATEGORY_QUERY_EERRORS (&ns_g_categories[7])
|
||||
#define NS_LOGCATEGORY_QUERY_ERRORS (&ns_g_categories[7])
|
||||
|
||||
/*
|
||||
* Backwards compatibility.
|
||||
|
@@ -1009,7 +1009,7 @@ rpz_log_fail(ns_client_t *client, int level, dns_name_t *p_name,
|
||||
failed = ": ";
|
||||
dns_name_format(client->query.qname, qnamebuf, sizeof(qnamebuf));
|
||||
dns_name_format(p_name, p_namebuf, sizeof(p_namebuf));
|
||||
ns_client_log(client, NS_LOGCATEGORY_QUERY_EERRORS,
|
||||
ns_client_log(client, NS_LOGCATEGORY_QUERY_ERRORS,
|
||||
NS_LOGMODULE_QUERY, level,
|
||||
"rpz %s rewrite %s via %s%s%s%s",
|
||||
dns_rpz_type2str(rpz_type),
|
||||
@@ -3812,7 +3812,7 @@ query_resume(isc_task_t *task, isc_event_t *event) {
|
||||
ns_client_t *client;
|
||||
isc_boolean_t fetch_canceled, client_shuttingdown;
|
||||
isc_result_t result;
|
||||
isc_logcategory_t *logcategory = NS_LOGCATEGORY_QUERY_EERRORS;
|
||||
isc_logcategory_t *logcategory = NS_LOGCATEGORY_QUERY_ERRORS;
|
||||
int errorloglevel;
|
||||
|
||||
/*
|
||||
@@ -8795,7 +8795,7 @@ log_queryerror(ns_client_t *client, isc_result_t result, int line, int level) {
|
||||
}
|
||||
}
|
||||
|
||||
ns_client_log(client, NS_LOGCATEGORY_QUERY_EERRORS, NS_LOGMODULE_QUERY,
|
||||
ns_client_log(client, NS_LOGCATEGORY_QUERY_ERRORS, NS_LOGMODULE_QUERY,
|
||||
level, "query failed (%s)%s%s%s%s%s%s at %s:%d",
|
||||
isc_result_totext(result), sep1, namep, sep2,
|
||||
classp, sep2, typep, __FILE__, line);
|
||||
|
Reference in New Issue
Block a user