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_poll_engine.c | |
parent | f2090bce21e4fb47d11f992a76ef5c4da74c3233 (diff) | |
download | unit-912a49c6091c1fd9b630d2e0966f0fe1b97a3e42.tar.gz unit-912a49c6091c1fd9b630d2e0966f0fe1b97a3e42.tar.bz2 |
Reduced number of critical log levels.
Diffstat (limited to 'src/nxt_poll_engine.c')
-rw-r--r-- | src/nxt_poll_engine.c | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/src/nxt_poll_engine.c b/src/nxt_poll_engine.c index cb41d182..9b70f8d6 100644 --- a/src/nxt_poll_engine.c +++ b/src/nxt_poll_engine.c @@ -546,9 +546,9 @@ nxt_poll(nxt_event_engine_t *engine, nxt_msec_t timeout) phe = nxt_poll_fd_hash_get(engine, fd); if (nxt_slow_path(phe == NULL)) { - nxt_log(&engine->task, NXT_LOG_CRIT, - "poll() returned invalid fd:%d ev:%04Xd rev:%04uXi", - fd, pfd->events, events); + nxt_alert(&engine->task, + "poll() returned invalid fd:%d ev:%04Xd rev:%04uXi", + fd, pfd->events, events); /* Mark the poll entry to ignore it by the kernel. */ pfd->fd = -1; @@ -561,9 +561,8 @@ nxt_poll(nxt_event_engine_t *engine, nxt_msec_t timeout) fd, events, ev->read, ev->write); if (nxt_slow_path((events & POLLNVAL) != 0)) { - nxt_log(ev->task, NXT_LOG_CRIT, - "poll() error fd:%d ev:%04Xd rev:%04uXi", - fd, pfd->events, events); + nxt_alert(ev->task, "poll() error fd:%d ev:%04Xd rev:%04uXi", + fd, pfd->events, events); /* Mark the poll entry to ignore it by the kernel. */ pfd->fd = -1; @@ -649,7 +648,7 @@ nxt_poll_fd_hash_get(nxt_event_engine_t *engine, nxt_fd_t fd) return phe; } - nxt_log(&engine->task, NXT_LOG_CRIT, "fd %d not found in hash", fd); + nxt_alert(&engine->task, "fd %d not found in hash", fd); return NULL; } @@ -671,9 +670,8 @@ nxt_poll_fd_hash_test(nxt_lvlhsh_query_t *lhq, void *data) return NXT_OK; } - nxt_log(&engine->task, NXT_LOG_CRIT, - "fd %d in hash mismatches fd %d in poll set", - phe->fd, engine->u.poll.set[phe->index].fd); + nxt_alert(&engine->task, "fd %d in hash mismatches fd %d in poll set", + phe->fd, engine->u.poll.set[phe->index].fd); return NXT_DECLINED; } @@ -700,8 +698,7 @@ nxt_poll_fd_hash_destroy(nxt_event_engine_t *engine, nxt_lvlhsh_t *lh) lhq.key_hash = nxt_murmur_hash2(&phe->fd, sizeof(nxt_fd_t)); if (nxt_lvlhsh_delete(lh, &lhq) != NXT_OK) { - nxt_log(&engine->task, NXT_LOG_CRIT, - "event fd %d not found in hash", phe->fd); + nxt_alert(&engine->task, "event fd %d not found in hash", phe->fd); } nxt_free(phe); |