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_php_sapi.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_php_sapi.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/nxt_php_sapi.c b/src/nxt_php_sapi.c index a12f6481..c4e5fe1c 100644 --- a/src/nxt_php_sapi.c +++ b/src/nxt_php_sapi.c @@ -191,7 +191,7 @@ nxt_php_init(nxt_task_t *task, nxt_common_app_conf_t *conf) c = &conf->u.php; if (c->root == NULL) { - nxt_log_emerg(task->log, "php root is empty"); + nxt_alert(task, "php root is empty"); return NXT_ERROR; } @@ -202,8 +202,7 @@ nxt_php_init(nxt_task_t *task, nxt_common_app_conf_t *conf) root->start = nxt_realpath(c->root); if (nxt_slow_path(root->start == NULL)) { - nxt_log_emerg(task->log, "root realpath(%s) failed %E", - c->root, nxt_errno); + nxt_alert(task, "root realpath(%s) failed %E", c->root, nxt_errno); return NXT_ERROR; } @@ -228,15 +227,14 @@ nxt_php_init(nxt_task_t *task, nxt_common_app_conf_t *conf) rpath.start = nxt_realpath(path->start); if (nxt_slow_path(rpath.start == NULL)) { - nxt_log_emerg(task->log, "script realpath(%V) failed %E", - path, nxt_errno); + nxt_alert(task, "script realpath(%V) failed %E", path, nxt_errno); return NXT_ERROR; } rpath.length = nxt_strlen(rpath.start); if (!nxt_str_start(&rpath, root->start, root->length)) { - nxt_log_emerg(task->log, "script is not under php root"); + nxt_alert(task, "script is not under php root"); return NXT_ERROR; } |