Home
last modified time | relevance | path

Searched refs:level (Results 1 – 25 of 36) sorted by path

12

/unit/
H A DCHANGES553 *) Change: decreased log level of common errors when clients close
/unit/src/
H A Dnxt_app_log.c20 nxt_log_time_handler(nxt_uint_t level, nxt_log_t *log, const char *fmt, ...) in nxt_log_time_handler() argument
35 time_cache = (log->level != NXT_LOG_DEBUG) ? &nxt_log_error_time_cache: in nxt_log_time_handler()
60 p = nxt_sprintf(p, end, id, &nxt_log_levels[level], nxt_pid, in nxt_log_time_handler()
63 p = nxt_sprintf(p, end, "[%V] %PI#%PT ", &nxt_log_levels[level], nxt_pid, in nxt_log_time_handler()
75 if (level != NXT_LOG_DEBUG && log->ctx_handler != NULL) { in nxt_log_time_handler()
88 if (level == NXT_LOG_ALERT) { in nxt_log_time_handler()
H A Dnxt_conf.c154 while (level) { in nxt_conf_json_indentation()
156 level--; in nxt_conf_json_indentation()
2331 pretty->level++; in nxt_conf_json_array_length()
2346 pretty->level--; in nxt_conf_json_array_length()
2376 pretty->level++; in nxt_conf_json_print_array()
2398 pretty->level--; in nxt_conf_json_print_array()
2426 pretty->level++; in nxt_conf_json_object_length()
2445 pretty->level--; in nxt_conf_json_object_length()
2448 len += pretty->level + 2; in nxt_conf_json_object_length()
2471 pretty->level++; in nxt_conf_json_print_object()
[all …]
H A Dnxt_conf.h65 uint32_t level; member
H A Dnxt_cyassl.c42 static void nxt_cdecl nxt_cyassl_log_error(nxt_uint_t level, nxt_log_t *log,
540 nxt_uint_t level; in nxt_cyassl_conn_error() local
546 level = nxt_cyassl_log_error_level(c, err, ssltls->ssl_error); in nxt_cyassl_conn_error()
548 if (nxt_log_level_enough(c->socket.log, level)) { in nxt_cyassl_conn_error()
562 nxt_log_error(level, c->socket.log, "%*s", p - msg, msg); in nxt_cyassl_conn_error()
585 nxt_cyassl_log_error(nxt_uint_t level, nxt_log_t *log, int err, in nxt_cyassl_log_error() argument
592 if (nxt_log_level_enough(log, level)) { in nxt_cyassl_log_error()
602 nxt_log_error(level, log, "%*s", p - msg, msg); in nxt_cyassl_log_error()
H A Dnxt_devpoll_engine.c562 nxt_uint_t events, level; in nxt_devpoll_poll() local
591 level = (err == NXT_EINTR) ? NXT_LOG_INFO : NXT_LOG_ALERT; in nxt_devpoll_poll()
593 nxt_log(&engine->task, level, "ioctl(%d, DP_POLL) failed %E", in nxt_devpoll_poll()
H A Dnxt_epoll_engine.c878 nxt_uint_t level; in nxt_epoll_poll() local
905 level = (err == NXT_EINTR) ? NXT_LOG_INFO : NXT_LOG_ALERT; in nxt_epoll_poll()
907 nxt_log(&engine->task, level, "epoll_wait(%d) failed %E", in nxt_epoll_poll()
H A Dnxt_eventport_engine.c456 nxt_uint_t i, level; in nxt_eventport_poll() local
516 level = (err == NXT_EINTR) ? NXT_LOG_INFO : NXT_LOG_ALERT; in nxt_eventport_poll()
518 nxt_log(&engine->task, level, "port_getn(%d) failed %E", in nxt_eventport_poll()
H A Dnxt_gnutls.c58 static void nxt_cdecl nxt_gnutls_log_error(nxt_uint_t level, nxt_log_t *log,
685 nxt_uint_t level; in nxt_gnutls_conn_log_error() local
688 level = nxt_gnutls_log_error_level(c, err); in nxt_gnutls_conn_log_error()
690 if (nxt_log_level_enough(c->socket.log, level)) { in nxt_gnutls_conn_log_error()
696 nxt_log_error(level, c->socket.log, "%*s (%d: %s)", in nxt_gnutls_conn_log_error()
730 nxt_gnutls_log_error(nxt_uint_t level, nxt_log_t *log, int err, in nxt_gnutls_log_error() argument
740 nxt_log_error(level, log, "%*s (%d: %s)", in nxt_gnutls_log_error()
H A Dnxt_http_parse.c1219 nxt_http_field_proc_t items[], nxt_uint_t count, nxt_bool_t level) in nxt_http_fields_hash_collisions() argument
1234 mask = level ? (1 << NXT_HTTP_FIELD_LVLHSH_SHIFT) - 1 : 0xFFFF; in nxt_http_fields_hash_collisions()
H A Dnxt_http_parse.h125 nxt_http_field_proc_t items[], nxt_uint_t count, nxt_bool_t level);
H A Dnxt_http_static.c309 nxt_uint_t level; in nxt_http_static_send_ready() local
454 level = NXT_LOG_ERR; in nxt_http_static_send_ready()
463 level = NXT_LOG_ERR; in nxt_http_static_send_ready()
468 level = NXT_LOG_ALERT; in nxt_http_static_send_ready()
478 nxt_log(task, level, "opening \"%s\" at \"%V\" failed %E", in nxt_http_static_send_ready()
482 nxt_log(task, level, "opening \"%s\" failed %E", in nxt_http_static_send_ready()
487 nxt_log(task, level, "opening \"%s\" failed %E", fname, file.error); in nxt_http_static_send_ready()
491 if (level == NXT_LOG_ERR) { in nxt_http_static_send_ready()
H A Dnxt_kqueue_engine.c669 nxt_uint_t level; in nxt_kqueue_poll() local
703 level = (err == NXT_EINTR) ? NXT_LOG_INFO : NXT_LOG_ALERT; in nxt_kqueue_poll()
705 nxt_log(&engine->task, level, "kevent(%d) failed %E", in nxt_kqueue_poll()
H A Dnxt_lib.c51 nxt_main_log.level = NXT_LOG_DEBUG; in nxt_lib_start()
H A Dnxt_log.c55 log->level = old->level; in nxt_log_set_ctx()
67 nxt_log_handler(nxt_uint_t level, nxt_log_t *log, const char *fmt, ...) in nxt_log_handler() argument
90 &nxt_log_levels[level], log->ident); in nxt_log_handler()
96 if (level != NXT_LOG_DEBUG && log->ctx_handler != NULL) { in nxt_log_handler()
109 if (level == NXT_LOG_ALERT) { in nxt_log_handler()
H A Dnxt_log.h22 typedef void nxt_cdecl (*nxt_log_handler_t)(nxt_uint_t level, nxt_log_t *log,
28 uint32_t level; member
40 NXT_EXPORT void nxt_cdecl nxt_log_handler(nxt_uint_t level, nxt_log_t *log,
44 #define nxt_log_level_enough(log, level) \ argument
45 ((log)->level >= (level))
61 if (nxt_slow_path(_log->level >= _level_)) { \
71 if (nxt_slow_path(_log->level >= NXT_LOG_NOTICE || nxt_trace)) { \
90 if (nxt_slow_path(_log_->level >= _level_)) { \
102 if (nxt_slow_path(_log->level == NXT_LOG_DEBUG || nxt_debug)) { \
112 if (nxt_slow_path(_log_->level == NXT_LOG_DEBUG || nxt_debug)) { \
[all …]
H A Dnxt_log_moderation.c94 nxt_log_error(mod->level, &nxt_main_log, "%s %uA times", in nxt_log_moderate_timer_handler()
H A Dnxt_log_moderation.h12 uint32_t level; member
40 if (_log_->level >= (_level) && nxt_log_moderate_allow(_mod)) { \
H A Dnxt_lvlhsh.c455 void *lvl, **level; in nxt_lvlhsh_convert_bucket_to_level() local
473 level = lvl; in nxt_lvlhsh_convert_bucket_to_level()
611 if (level[i] != NULL) { in nxt_lvlhsh_free_level()
621 proto->free(lhq->pool, level); in nxt_lvlhsh_free_level()
763 goto level; in nxt_lvlhsh_each()
774 level: in nxt_lvlhsh_each()
791 level = nxt_lvlhsh_level(level, mask); in nxt_lvlhsh_level_each()
795 slot = level[n]; in nxt_lvlhsh_level_each()
888 void **slot, **level, *value; in nxt_lvlhsh_level_peek() local
895 level = nxt_lvlhsh_level(*parent, mask); in nxt_lvlhsh_level_peek()
[all …]
H A Dnxt_openssl.c1631 nxt_uint_t level; local
1634 level = nxt_openssl_log_error_level(err);
1636 if (nxt_log_level_enough(task->log, level)) {
1650 nxt_log(task, level, "%*s", p - msg, msg);
1736 nxt_openssl_log_error(nxt_task_t *task, nxt_uint_t level, const char *fmt, ...) argument
1750 nxt_log(task, level, "%*s", p - msg, msg);
H A Dnxt_polarssl.c24 static void nxt_polarssl_log_error(nxt_uint_t level, nxt_log_t *log, int err,
101 nxt_polarssl_log_error(nxt_uint_t level, nxt_log_t *log, int err, in nxt_polarssl_log_error() argument
117 nxt_log_error(level, log, "%*s)", p - msg, msg); in nxt_polarssl_log_error()
H A Dnxt_poll_engine.c506 nxt_uint_t i, events, level; in nxt_poll() local
530 level = (err == NXT_EINTR) ? NXT_LOG_INFO : NXT_LOG_ALERT; in nxt_poll()
531 nxt_log(&engine->task, level, "poll() failed %E", err); in nxt_poll()
H A Dnxt_pollset_engine.c551 nxt_uint_t events, level; in nxt_pollset_poll() local
576 level = (err == NXT_EINTR) ? NXT_LOG_INFO : NXT_LOG_ALERT; in nxt_pollset_poll()
578 nxt_log(&engine->task, level, "pollset_poll(%d) failed %E", in nxt_pollset_poll()
H A Dnxt_runtime.h135 void nxt_cdecl nxt_log_time_handler(nxt_uint_t level, nxt_log_t *log,
H A Dnxt_select_engine.c285 nxt_uint_t fd, level; in nxt_select_poll() local
325 level = (err == NXT_EINTR) ? NXT_LOG_INFO : NXT_LOG_ALERT; in nxt_select_poll()
326 nxt_log(&engine->task, level, "select() failed %E", err); in nxt_select_poll()

12