Home
last modified time | relevance | path

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

12

/unit/src/
H A Dnxt_socket.c85 s, level, nxt_socket_sockopt_name(level, sockopt), val); in nxt_socket_getsockopt()
90 s, level, nxt_socket_sockopt_name(level, sockopt), in nxt_socket_getsockopt()
107 s, level, nxt_socket_sockopt_name(level, sockopt), val); in nxt_socket_setsockopt()
112 s, level, nxt_socket_sockopt_name(level, sockopt), val, in nxt_socket_setsockopt()
122 switch (level) { in nxt_socket_sockopt_name()
196 nxt_uint_t level; in nxt_socket_connect() local
222 level = NXT_LOG_ERR; in nxt_socket_connect()
231 level = NXT_LOG_ERR; in nxt_socket_connect()
251 nxt_uint_t level; in nxt_socket_shutdown() local
271 level = NXT_LOG_ERR; in nxt_socket_shutdown()
[all …]
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.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_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_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_log_moderation.h12 uint32_t level; member
40 if (_log_->level >= (_level) && nxt_log_moderate_allow(_mod)) { \
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_socket.h99 nxt_uint_t level, nxt_uint_t sockopt);
101 nxt_uint_t level, nxt_uint_t sockopt, int val);
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_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_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_tls.h98 void nxt_cdecl nxt_openssl_log_error(nxt_task_t *task, nxt_uint_t level,
H A Dnxt_http_static.c305 nxt_uint_t level; in nxt_http_static_send_ready() local
450 level = NXT_LOG_ERR; in nxt_http_static_send_ready()
459 level = NXT_LOG_ERR; in nxt_http_static_send_ready()
464 level = NXT_LOG_ALERT; in nxt_http_static_send_ready()
474 nxt_log(task, level, "opening \"%s\" at \"%V\" failed %E", in nxt_http_static_send_ready()
478 nxt_log(task, level, "opening \"%s\" failed %E", in nxt_http_static_send_ready()
483 nxt_log(task, level, "opening \"%s\" failed %E", fname, file.error); in nxt_http_static_send_ready()
487 if (level == NXT_LOG_ERR) { in nxt_http_static_send_ready()
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_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()
H A Dnxt_lib.c51 nxt_main_log.level = NXT_LOG_DEBUG; in nxt_lib_start()
H A Dnxt_unit.h358 void nxt_unit_log(nxt_unit_ctx_t *ctx, int level, const char* fmt, ...)
361 void nxt_unit_req_log(nxt_unit_request_info_t *req, int level,
H A Dnxt_http_parse.h125 nxt_http_field_proc_t items[], nxt_uint_t count, nxt_bool_t level);
H A Dnxt_thread_time.c202 if (nxt_slow_path(thr->log->level == NXT_LOG_DEBUG || nxt_debug)) { in nxt_thread_realtime_update()
261 && (nxt_slow_path(thr->log->level == NXT_LOG_DEBUG || nxt_debug))) in nxt_thread_time_string()
H A Dnxt_runtime.h135 void nxt_cdecl nxt_log_time_handler(nxt_uint_t level, nxt_log_t *log,
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()
/unit/src/test/
H A Dnxt_clone_test.c33 void nxt_cdecl nxt_clone_test_log_handler(nxt_uint_t level, nxt_log_t *log,
387 nxt_clone_test_log_handler(nxt_uint_t level, nxt_log_t *log, in nxt_clone_test_log_handler() argument
408 if (tc->result == NXT_OK && level == NXT_LOG_DEBUG) { in nxt_clone_test_log_handler()
H A Dnxt_tests.c35 nxt_main_log.level = NXT_LOG_INFO; in main()
H A Dnxt_utf8_file_name_test.c28 nxt_main_log.level = NXT_LOG_INFO; in main()
/unit/src/ruby/
H A Dnxt_ruby.c76 uint32_t level, const char *desc);
1186 nxt_ruby_exception_log(nxt_unit_request_info_t *req, uint32_t level, in nxt_ruby_exception_log() argument
1192 nxt_unit_req_log(req, level, "Ruby: %s", desc); in nxt_ruby_exception_log()
1205 nxt_unit_req_log(req, level, "Ruby: %s (%s)", RSTRING_PTR(msg), in nxt_ruby_exception_log()
1211 nxt_unit_req_log(req, level, "Ruby: %s: %s (%s)", in nxt_ruby_exception_log()
1216 nxt_unit_req_log(req, level, "from %s", in nxt_ruby_exception_log()

12