Commit 5c3e730c authored by Andreas Gustafsson's avatar Andreas Gustafsson
Browse files

include program name in log messages printed through

the logging system
parent a89b06a4
......@@ -1299,6 +1299,8 @@ setup_logging(int level, isc_log_t **logp) {
dns_log_init(log);
dns_log_setcontext(log);
isc_log_settag(logconfig, PROGRAM);
/*
* Set up a channel similar to default_stderr except:
* - the logging level is passed in
......@@ -1313,7 +1315,7 @@ setup_logging(int level, isc_log_t **logp) {
ISC_LOG_TOFILEDESC,
level,
&destination,
ISC_LOG_PRINTLEVEL);
ISC_LOG_PRINTTAG|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