summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_go.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_go.c
parentf2090bce21e4fb47d11f992a76ef5c4da74c3233 (diff)
downloadunit-912a49c6091c1fd9b630d2e0966f0fe1b97a3e42.tar.gz
unit-912a49c6091c1fd9b630d2e0966f0fe1b97a3e42.tar.bz2
Reduced number of critical log levels.
Diffstat (limited to 'src/nxt_go.c')
-rw-r--r--src/nxt_go.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/nxt_go.c b/src/nxt_go.c
index 294c608b..709908e2 100644
--- a/src/nxt_go.c
+++ b/src/nxt_go.c
@@ -38,8 +38,7 @@ nxt_go_fd_no_cloexec(nxt_task_t *task, nxt_socket_t fd)
flags = fcntl(fd, F_GETFD);
if (nxt_slow_path(flags == -1)) {
- nxt_log(task, NXT_LOG_CRIT, "fcntl(%d, F_GETFD) failed %E",
- fd, nxt_errno);
+ nxt_alert(task, "fcntl(%d, F_GETFD) failed %E", fd, nxt_errno);
return NXT_ERROR;
}
@@ -48,8 +47,7 @@ nxt_go_fd_no_cloexec(nxt_task_t *task, nxt_socket_t fd)
res = fcntl(fd, F_SETFD, flags);
if (nxt_slow_path(res == -1)) {
- nxt_log(task, NXT_LOG_CRIT, "fcntl(%d, F_SETFD) failed %E",
- fd, nxt_errno);
+ nxt_alert(task, "fcntl(%d, F_SETFD) failed %E", fd, nxt_errno);
return NXT_ERROR;
}
@@ -100,8 +98,7 @@ nxt_go_init(nxt_task_t *task, nxt_common_app_conf_t *conf)
my_port->pair[0], -1);
if (nxt_slow_path(p == end)) {
- nxt_log(task, NXT_LOG_ALERT,
- "internal error: buffer too small for NXT_GO_PORTS");
+ nxt_alert(task, "internal error: buffer too small for NXT_GO_PORTS");
return NXT_ERROR;
}
@@ -110,8 +107,7 @@ nxt_go_init(nxt_task_t *task, nxt_common_app_conf_t *conf)
rc = setenv("NXT_GO_PORTS", (char *) buf, 1);
if (nxt_slow_path(rc == -1)) {
- nxt_log(task, NXT_LOG_CRIT, "setenv(NXT_GO_PORTS, %s) failed %E",
- buf, nxt_errno);
+ nxt_alert(task, "setenv(NXT_GO_PORTS, %s) failed %E", buf, nxt_errno);
return NXT_ERROR;
}
@@ -123,8 +119,7 @@ nxt_go_init(nxt_task_t *task, nxt_common_app_conf_t *conf)
(void) execve(c->executable, argv, environ);
- nxt_log(task, NXT_LOG_CRIT, "execve(%s) failed %E",
- c->executable, nxt_errno);
+ nxt_alert(task, "execve(%s) failed %E", c->executable, nxt_errno);
return NXT_ERROR;
}