diff --git a/bin/dnssec/dnssec-signzone.c b/bin/dnssec/dnssec-signzone.c index cc8e086d45..ddb52a55e1 100644 --- a/bin/dnssec/dnssec-signzone.c +++ b/bin/dnssec/dnssec-signzone.c @@ -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", diff --git a/bin/tests/signer.c b/bin/tests/signer.c index cc8e086d45..ddb52a55e1 100644 --- a/bin/tests/signer.c +++ b/bin/tests/signer.c @@ -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",