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_controller.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_controller.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/nxt_controller.c b/src/nxt_controller.c index 0a65ada7..6c477157 100644 --- a/src/nxt_controller.c +++ b/src/nxt_controller.c @@ -154,9 +154,8 @@ nxt_controller_start(nxt_task_t *task, void *data) nxt_free(json->start); if (nxt_slow_path(conf == NULL)) { - nxt_log(task, NXT_LOG_ALERT, - "failed to restore previous configuration: " - "file is corrupted or not enough memory"); + nxt_alert(task, "failed to restore previous configuration: " + "file is corrupted or not enough memory"); nxt_mp_destroy(mp); return NXT_OK; @@ -176,8 +175,8 @@ nxt_controller_start(nxt_task_t *task, void *data) if (nxt_slow_path(ret != NXT_OK)) { if (ret == NXT_DECLINED) { - nxt_log(task, NXT_LOG_ALERT, - "the previous configuration is invalid: %V", &vldt.error); + nxt_alert(task, "the previous configuration is invalid: %V", + &vldt.error); nxt_mp_destroy(vldt.pool); nxt_mp_destroy(mp); @@ -279,7 +278,7 @@ nxt_controller_conf_init_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg, nxt_runtime_t *rt; if (msg->port_msg.type != NXT_PORT_MSG_RPC_READY) { - nxt_log(task, NXT_LOG_ALERT, "failed to apply previous configuration"); + nxt_alert(task, "failed to apply previous configuration"); nxt_mp_destroy(nxt_controller_conf.pool); |