mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 15:05:23 +00:00
include severity level in log messages printed on stderr
This commit is contained in:
@@ -1290,9 +1290,10 @@ setup_logging(int level, isc_log_t **logp) {
|
|||||||
dns_log_setcontext(log);
|
dns_log_setcontext(log);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set up a channel similar to default_stderr except
|
* Set up a channel similar to default_stderr except:
|
||||||
* that the logging level is passed in and the
|
* - the logging level is passed in
|
||||||
* time is not printed.
|
* - the logging level is printed
|
||||||
|
* - no time stamp is printed
|
||||||
*/
|
*/
|
||||||
destination.file.stream = stderr;
|
destination.file.stream = stderr;
|
||||||
destination.file.name = NULL;
|
destination.file.name = NULL;
|
||||||
@@ -1302,7 +1303,7 @@ setup_logging(int level, isc_log_t **logp) {
|
|||||||
ISC_LOG_TOFILEDESC,
|
ISC_LOG_TOFILEDESC,
|
||||||
level,
|
level,
|
||||||
&destination,
|
&destination,
|
||||||
0);
|
ISC_LOG_PRINTLEVEL);
|
||||||
check_result(result, "isc_log_createchannel()");
|
check_result(result, "isc_log_createchannel()");
|
||||||
|
|
||||||
RUNTIME_CHECK(isc_log_usechannel(logconfig, "stderr",
|
RUNTIME_CHECK(isc_log_usechannel(logconfig, "stderr",
|
||||||
|
@@ -1290,9 +1290,10 @@ setup_logging(int level, isc_log_t **logp) {
|
|||||||
dns_log_setcontext(log);
|
dns_log_setcontext(log);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set up a channel similar to default_stderr except
|
* Set up a channel similar to default_stderr except:
|
||||||
* that the logging level is passed in and the
|
* - the logging level is passed in
|
||||||
* time is not printed.
|
* - the logging level is printed
|
||||||
|
* - no time stamp is printed
|
||||||
*/
|
*/
|
||||||
destination.file.stream = stderr;
|
destination.file.stream = stderr;
|
||||||
destination.file.name = NULL;
|
destination.file.name = NULL;
|
||||||
@@ -1302,7 +1303,7 @@ setup_logging(int level, isc_log_t **logp) {
|
|||||||
ISC_LOG_TOFILEDESC,
|
ISC_LOG_TOFILEDESC,
|
||||||
level,
|
level,
|
||||||
&destination,
|
&destination,
|
||||||
0);
|
ISC_LOG_PRINTLEVEL);
|
||||||
check_result(result, "isc_log_createchannel()");
|
check_result(result, "isc_log_createchannel()");
|
||||||
|
|
||||||
RUNTIME_CHECK(isc_log_usechannel(logconfig, "stderr",
|
RUNTIME_CHECK(isc_log_usechannel(logconfig, "stderr",
|
||||||
|
Reference in New Issue
Block a user