]> git.kaiwu.me - nginx.git/commitdiff
decrease log level from alert to debug for POLLERR|POLLHUP|POLLNVAL
authorIgor Sysoev <igor@sysoev.ru>
Tue, 6 Mar 2007 11:01:50 +0000 (11:01 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 6 Mar 2007 11:01:50 +0000 (11:01 +0000)
src/event/modules/ngx_devpoll_module.c
src/event/modules/ngx_eventport_module.c

index 1ea51f96b66b7294537de92b73b72a94b51a4c16..e8135b9513407fddaacdae2c57f0b996d32961bb 100644 (file)
@@ -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);
         }
index ebfd9a56b4029a1e75adf7dc4683a09aadd94dfc..bd046edbb2ddfa3a1c30f4fa98b706093d1bac08 100644 (file)
@@ -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)) {