diff options
author | Internet Software Consortium, Inc <@isc.org> | 2007-09-07 14:14:13 -0600 |
---|---|---|
committer | LaMont Jones <lamont@debian.org> | 2007-09-07 14:14:13 -0600 |
commit | 68791e78c00f09ff88fc236d31040d70f6516edf (patch) | |
tree | 4fa2c98b2b701da38e168b71cfe85b7cd171be2d /bin/named/log.c | |
parent | 540716ae8c026fe40704cd6a0c0d0cd530b44a40 (diff) | |
download | bind9-68791e78c00f09ff88fc236d31040d70f6516edf.tar.gz |
9.2.0rc9
Diffstat (limited to 'bin/named/log.c')
-rw-r--r-- | bin/named/log.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/bin/named/log.c b/bin/named/log.c index d171666a..361ab83b 100644 --- a/bin/named/log.c +++ b/bin/named/log.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: log.c,v 1.33 2001/06/14 14:14:17 gson Exp $ */ +/* $Id: log.c,v 1.33.2.1 2001/10/31 22:44:15 marka Exp $ */ #include <config.h> @@ -168,10 +168,12 @@ isc_result_t ns_log_setdefaultcategory(isc_logconfig_t *lcfg) { isc_result_t result; - result = isc_log_usechannel(lcfg, "default_syslog", - ISC_LOGCATEGORY_DEFAULT, NULL); - if (result != ISC_R_SUCCESS) - goto cleanup; + if (! ns_g_logstderr) { + result = isc_log_usechannel(lcfg, "default_syslog", + ISC_LOGCATEGORY_DEFAULT, NULL); + if (result != ISC_R_SUCCESS) + goto cleanup; + } result = isc_log_usechannel(lcfg, "default_debug", ISC_LOGCATEGORY_DEFAULT, NULL); |