From 2e6c9767515e10c801ac57a60bd45eeb71ed59a3 Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Sat, 6 May 2000 00:50:41 +0000 Subject: [PATCH] include severity level in log messages printed on stderr --- bin/dnssec/dnssec-signzone.c | 9 +++++---- bin/tests/signer.c | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) 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",