From c1dac7b9d0e5b40bb9724eb83843972fef9c3523 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 6 Mar 2007 11:01:50 +0000 Subject: [PATCH] decrease log level from alert to debug for POLLERR|POLLHUP|POLLNVAL --- src/event/modules/ngx_devpoll_module.c | 2 +- src/event/modules/ngx_eventport_module.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/event/modules/ngx_devpoll_module.c b/src/event/modules/ngx_devpoll_module.c index 1ea51f96b..e8135b951 100644 --- a/src/event/modules/ngx_devpoll_module.c +++ b/src/event/modules/ngx_devpoll_module.c @@ -416,7 +416,7 @@ ngx_devpoll_process_events(ngx_cycle_t *cycle, ngx_msec_t timer, event_list[i].fd, event_list[i].events, revents); if (revents & (POLLERR|POLLHUP|POLLNVAL)) { - ngx_log_error(NGX_LOG_ALERT, cycle->log, 0, + ngx_log_debug2(NGX_LOG_DEBUG_EVENT, cycle->log, 0, "ioctl(DP_POLL) error fd:%d ev:%04Xd rev:%04Xd", event_list[i].fd, event_list[i].events, revents); } diff --git a/src/event/modules/ngx_eventport_module.c b/src/event/modules/ngx_eventport_module.c index ebfd9a56b..bd046edbb 100644 --- a/src/event/modules/ngx_eventport_module.c +++ b/src/event/modules/ngx_eventport_module.c @@ -467,9 +467,9 @@ ngx_eventport_process_events(ngx_cycle_t *cycle, ngx_msec_t timer, event_list[i].portev_object, revents); if (revents & (POLLERR|POLLHUP|POLLNVAL)) { - ngx_log_error(NGX_LOG_ALERT, cycle->log, 0, - "port_getn() error fd:%d ev:%04Xd", - event_list[i].portev_object, revents); + ngx_log_debug2(NGX_LOG_DEBUG_EVENT, cycle->log, 0, + "port_getn() error fd:%d ev:%04Xd", + event_list[i].portev_object, revents); } if (revents & ~(POLLIN|POLLOUT|POLLERR|POLLHUP|POLLNVAL)) {