Home
last modified time | relevance | path

Searched refs:level (Results 1 – 25 of 36) sorted by last modified time

12

/unit/src/
H A Dnxt_runtime.h135 void nxt_cdecl nxt_log_time_handler(nxt_uint_t level, nxt_log_t *log,
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_conf.h65 uint32_t level; member
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_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_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_unit.c200 int level);
6579 nxt_unit_log(nxt_unit_ctx_t *ctx, int level, const char *fmt, ...) in nxt_unit_log() argument
6601 p = nxt_unit_snprint_prefix(p, end, pid, level); in nxt_unit_log()
6622 nxt_unit_req_log(nxt_unit_request_info_t *req, int level, const char *fmt, ...) in nxt_unit_req_log() argument
6645 p = nxt_unit_snprint_prefix(p, end, pid, level); in nxt_unit_req_log()
6682 nxt_unit_snprint_prefix(char *p, const char *end, pid_t pid, int level) in nxt_unit_snprint_prefix() argument
6709 "[%s] %d#%"PRIu64" [unit] ", nxt_unit_log_levels[level], in nxt_unit_snprint_prefix()
H A Dnxt_http_parse.h125 nxt_http_field_proc_t items[], nxt_uint_t count, nxt_bool_t level);
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_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.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_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_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_tls.h98 void nxt_cdecl nxt_openssl_log_error(nxt_task_t *task, nxt_uint_t level,
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_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_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_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()
/unit/src/test/
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()
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_cq_test.c424 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()
/unit/
H A DCHANGES553 *) Change: decreased log level of common errors when clients close

12