summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_controller.c
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2018-03-05 17:32:50 +0300
committerValentin Bartenev <vbart@nginx.com>2018-03-05 17:32:50 +0300
commit912a49c6091c1fd9b630d2e0966f0fe1b97a3e42 (patch)
tree5581735807436384796dfd9deff336865c8372e4 /src/nxt_controller.c
parentf2090bce21e4fb47d11f992a76ef5c4da74c3233 (diff)
downloadunit-912a49c6091c1fd9b630d2e0966f0fe1b97a3e42.tar.gz
unit-912a49c6091c1fd9b630d2e0966f0fe1b97a3e42.tar.bz2
Reduced number of critical log levels.
Diffstat (limited to 'src/nxt_controller.c')
-rw-r--r--src/nxt_controller.c11
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);