2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

the 'default_debug' log channel was not set up when

'category default' was present in the config file
This commit is contained in:
Andreas Gustafsson
2000-04-28 18:53:45 +00:00
parent b22879b057
commit a0f6cda5fd
5 changed files with 46 additions and 14 deletions

View File

@@ -1314,12 +1314,15 @@ load_configuration(const char *filename, ns_server_t *server,
"creating new logging configuration");
(void) dns_c_ctx_getlogging(cctx, &clog);
if (clog != NULL)
if (clog != NULL) {
CHECKM(ns_log_configure(logc, clog),
"configuring logging");
else
CHECKM(ns_log_setdefaults(logc),
"setting up default logging defaults");
} else {
CHECKM(ns_log_setdefaultchannels(logc),
"setting up default logging channels");
CHECKM(ns_log_setdefaultcategory(logc),
"setting up default 'category default'");
}
result = isc_logconfig_use(ns_g_lctx, logc);
if (result != ISC_R_SUCCESS) {