Commit 2e6c9767 authored by Andreas Gustafsson's avatar Andreas Gustafsson
Browse files

include severity level in log messages printed on stderr

parent b4780360
......@@ -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",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment