diff options
author | Valentin Bartenev <vbart@nginx.com> | 2018-03-05 17:32:50 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2018-03-05 17:32:50 +0300 |
commit | 912a49c6091c1fd9b630d2e0966f0fe1b97a3e42 (patch) | |
tree | 5581735807436384796dfd9deff336865c8372e4 /src/nxt_conn_accept.c | |
parent | f2090bce21e4fb47d11f992a76ef5c4da74c3233 (diff) | |
download | unit-912a49c6091c1fd9b630d2e0966f0fe1b97a3e42.tar.gz unit-912a49c6091c1fd9b630d2e0966f0fe1b97a3e42.tar.bz2 |
Reduced number of critical log levels.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_conn_accept.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/nxt_conn_accept.c b/src/nxt_conn_accept.c index 80b599b4..a2aaa940 100644 --- a/src/nxt_conn_accept.c +++ b/src/nxt_conn_accept.c @@ -234,8 +234,8 @@ nxt_conn_accept_next(nxt_task_t *task, nxt_listen_event_t *lev) } while (nxt_conn_accept_close_idle(task, lev) == NXT_OK); - nxt_log(task, NXT_LOG_CRIT, "no available connections, " - "new connections are not accepted within 1s"); + nxt_alert(task, "no available connections, " + "new connections are not accepted within 1s"); return NULL; } @@ -309,16 +309,16 @@ nxt_conn_accept_error(nxt_task_t *task, nxt_listen_event_t *lev, case ENOBUFS: case ENOMEM: if (nxt_conn_accept_close_idle(task, lev) != NXT_OK) { - nxt_log(task, NXT_LOG_CRIT, "%s(%d) failed %E, " - "new connections are not accepted within 1s", - accept_syscall, lev->socket.fd, err); + nxt_alert(task, "%s(%d) failed %E, " + "new connections are not accepted within 1s", + accept_syscall, lev->socket.fd, err); } return; default: - nxt_log(task, NXT_LOG_CRIT, "%s(%d) failed %E", - accept_syscall, lev->socket.fd, err); + nxt_alert(task, "%s(%d) failed %E", + accept_syscall, lev->socket.fd, err); return; } } @@ -357,5 +357,5 @@ nxt_conn_listen_event_error(nxt_task_t *task, void *obj, void *data) ev = obj; - nxt_log(task, NXT_LOG_CRIT, "accept(%d) event error", ev->fd); + nxt_alert(task, "accept(%d) event error", ev->fd); } |