mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 22:45:39 +00:00
2
CHANGES
2
CHANGES
@@ -1,3 +1,5 @@
|
|||||||
|
581. [bug] log severity was not being correctly processed.
|
||||||
|
[RT #485]
|
||||||
|
|
||||||
580. [func] Ignore trailing garbage on incoming DNS packets,
|
580. [func] Ignore trailing garbage on incoming DNS packets,
|
||||||
for interoperability with broken server
|
for interoperability with broken server
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: logconf.c,v 1.25 2000/08/25 01:08:20 bwelling Exp $ */
|
/* $Id: logconf.c,v 1.26 2000/11/29 13:30:43 marka Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -96,6 +96,7 @@ channel_fromconf(dns_c_logchan_t *cchan, isc_logconfig_t *lctx) {
|
|||||||
unsigned int type;
|
unsigned int type;
|
||||||
unsigned int flags = 0;
|
unsigned int flags = 0;
|
||||||
int level;
|
int level;
|
||||||
|
dns_c_logseverity_t severity;
|
||||||
|
|
||||||
type = ISC_LOG_TONULL;
|
type = ISC_LOG_TONULL;
|
||||||
switch (cchan->ctype) {
|
switch (cchan->ctype) {
|
||||||
@@ -174,7 +175,34 @@ channel_fromconf(dns_c_logchan_t *cchan, isc_logconfig_t *lctx) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
level = ISC_LOG_INFO;
|
level = ISC_LOG_INFO;
|
||||||
(void)dns_c_logchan_getdebuglevel(cchan, &level);
|
if (dns_c_logchan_getseverity(cchan, &severity) == ISC_R_SUCCESS) {
|
||||||
|
switch (severity) {
|
||||||
|
case dns_c_log_critical:
|
||||||
|
level = ISC_LOG_CRITICAL;
|
||||||
|
break;
|
||||||
|
case dns_c_log_error:
|
||||||
|
level = ISC_LOG_ERROR;
|
||||||
|
break;
|
||||||
|
case dns_c_log_warn:
|
||||||
|
level = ISC_LOG_WARNING;
|
||||||
|
break;
|
||||||
|
case dns_c_log_notice:
|
||||||
|
level = ISC_LOG_NOTICE;
|
||||||
|
break;
|
||||||
|
case dns_c_log_info:
|
||||||
|
level = ISC_LOG_INFO;
|
||||||
|
break;
|
||||||
|
case dns_c_log_debug:
|
||||||
|
(void)dns_c_logchan_getdebuglevel(cchan, &level);
|
||||||
|
break;
|
||||||
|
case dns_c_log_dynamic:
|
||||||
|
level = ISC_LOG_DYNAMIC;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
level = ISC_LOG_INFO;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
result = isc_log_createchannel(lctx, cchan->name,
|
result = isc_log_createchannel(lctx, cchan->name,
|
||||||
type, level, &dest, flags);
|
type, level, &dest, flags);
|
||||||
|
Reference in New Issue
Block a user