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