mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 21:47:59 +00:00
1082. [bug] The -g option to named incorrectly caused logging
to be sent to syslog in addition to stderr.
This commit is contained in:
parent
3b0c7a322a
commit
cc8e8b59d6
3
CHANGES
3
CHANGES
@ -1,3 +1,6 @@
|
|||||||
|
1082. [bug] The -g option to named incorrectly caused logging
|
||||||
|
to be sent to syslog in addition to stderr.
|
||||||
|
|
||||||
1081. [bug] Multicast queries were incorrectly identified
|
1081. [bug] Multicast queries were incorrectly identified
|
||||||
based on the source address, not the destination
|
based on the source address, not the destination
|
||||||
address.
|
address.
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* 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.34 2001/10/31 17:42:04 gson Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@ -168,10 +168,12 @@ isc_result_t
|
|||||||
ns_log_setdefaultcategory(isc_logconfig_t *lcfg) {
|
ns_log_setdefaultcategory(isc_logconfig_t *lcfg) {
|
||||||
isc_result_t result;
|
isc_result_t result;
|
||||||
|
|
||||||
|
if (! ns_g_logstderr) {
|
||||||
result = isc_log_usechannel(lcfg, "default_syslog",
|
result = isc_log_usechannel(lcfg, "default_syslog",
|
||||||
ISC_LOGCATEGORY_DEFAULT, NULL);
|
ISC_LOGCATEGORY_DEFAULT, NULL);
|
||||||
if (result != ISC_R_SUCCESS)
|
if (result != ISC_R_SUCCESS)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
}
|
||||||
|
|
||||||
result = isc_log_usechannel(lcfg, "default_debug",
|
result = isc_log_usechannel(lcfg, "default_debug",
|
||||||
ISC_LOGCATEGORY_DEFAULT, NULL);
|
ISC_LOGCATEGORY_DEFAULT, NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user