Lines Matching refs:log
21 static ngx_int_t ngx_kqueue_notify_init(ngx_log_t *log);
35 static ngx_inline void ngx_kqueue_dump_event(ngx_log_t *log,
142 ngx_log_error(NGX_LOG_EMERG, cycle->log, ngx_errno, in ngx_kqueue_init()
148 if (ngx_kqueue_notify_init(cycle->log) != NGX_OK) { in ngx_kqueue_init()
162 ngx_log_error(NGX_LOG_ALERT, cycle->log, ngx_errno, in ngx_kqueue_init()
174 cycle->log); in ngx_kqueue_init()
187 event_list = ngx_alloc(kcf->events * sizeof(struct kevent), cycle->log); in ngx_kqueue_init()
211 ngx_log_error(NGX_LOG_ALERT, cycle->log, ngx_errno, in ngx_kqueue_init()
244 ngx_kqueue_notify_init(ngx_log_t *log) in ngx_kqueue_notify_init() argument
254 ngx_log_error(NGX_LOG_ALERT, log, ngx_errno, in ngx_kqueue_notify_init()
260 notify_event.log = log; in ngx_kqueue_notify_init()
276 ngx_log_error(NGX_LOG_ALERT, cycle->log, ngx_errno, in ngx_kqueue_done()
319 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, ev->log, 0, in ngx_kqueue_add_event()
335 ngx_log_error(NGX_LOG_ALERT, ev->log, 0, in ngx_kqueue_add_event()
362 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, ev->log, 0, in ngx_kqueue_del_event()
412 ngx_log_debug3(NGX_LOG_DEBUG_EVENT, ev->log, 0, in ngx_kqueue_set_event()
417 ngx_log_error(NGX_LOG_WARN, ev->log, 0, in ngx_kqueue_set_event()
426 ngx_log_error(NGX_LOG_ALERT, ev->log, ngx_errno, "kevent() failed"); in ngx_kqueue_set_event()
473 ngx_log_debug0(NGX_LOG_DEBUG_EVENT, ev->log, 0, "kevent flush"); in ngx_kqueue_set_event()
478 ngx_log_error(NGX_LOG_ALERT, ev->log, ngx_errno, "kevent() failed"); in ngx_kqueue_set_event()
497 ngx_log_error(NGX_LOG_ALERT, notify_event.log, ngx_errno, in ngx_kqueue_notify()
546 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, cycle->log, 0, in ngx_kqueue_process_events()
550 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, cycle->log, 0, in ngx_kqueue_process_events()
563 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, cycle->log, 0, in ngx_kqueue_process_events()
581 ngx_log_error(level, cycle->log, err, "kevent() failed"); in ngx_kqueue_process_events()
593 ngx_log_error(NGX_LOG_ALERT, cycle->log, 0, in ngx_kqueue_process_events()
601 ngx_kqueue_dump_event(cycle->log, &event_list[i]); in ngx_kqueue_process_events()
604 ngx_log_error(NGX_LOG_ALERT, cycle->log, event_list[i].data, in ngx_kqueue_process_events()
637 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, cycle->log, 0, in ngx_kqueue_process_events()
642 if (ev->log && (ev->log->log_level & NGX_LOG_DEBUG_CONNECTION)) { in ngx_kqueue_process_events()
643 ngx_kqueue_dump_event(ev->log, &event_list[i]); in ngx_kqueue_process_events()
678 ngx_log_error(NGX_LOG_ALERT, cycle->log, 0, in ngx_kqueue_process_events()
701 ngx_kqueue_dump_event(ngx_log_t *log, struct kevent *kev) in ngx_kqueue_dump_event() argument
704 ngx_log_debug6(NGX_LOG_DEBUG_EVENT, log, 0, in ngx_kqueue_dump_event()
711 ngx_log_debug6(NGX_LOG_DEBUG_EVENT, log, 0, in ngx_kqueue_dump_event()