summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_h1proto.c
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2020-08-05 16:11:20 +0300
committerValentin Bartenev <vbart@nginx.com>2020-08-05 16:11:20 +0300
commitb0ff245ca8609686a42025af6241279e2b5d2163 (patch)
tree58ac39db1583803808cb19f5d9737455310dfced /src/nxt_h1proto.c
parent2b53c7bbbd518131b46867343caaad18534ebd8f (diff)
downloadunit-b0ff245ca8609686a42025af6241279e2b5d2163.tar.gz
unit-b0ff245ca8609686a42025af6241279e2b5d2163.tar.bz2
Improved mkstemp() error reporting.
The invocation parameters should be logged as well, notably the path of the file that is failed to be created. Also, log level changed to ALERT as it's quite critical error.
Diffstat (limited to '')
-rw-r--r--src/nxt_h1proto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_h1proto.c b/src/nxt_h1proto.c
index 859ed02f..b34be019 100644
--- a/src/nxt_h1proto.c
+++ b/src/nxt_h1proto.c
@@ -906,7 +906,7 @@ nxt_h1p_request_body_read(nxt_task_t *task, nxt_http_request_t *r)
b->file->fd = mkstemp((char *) tmp_name.start);
if (nxt_slow_path(b->file->fd == -1)) {
- nxt_log(task, NXT_LOG_ERR, "mkstemp() failed %E", nxt_errno);
+ nxt_alert(task, "mkstemp(%s) failed %E", tmp_name.start, nxt_errno);
status = NXT_HTTP_INTERNAL_SERVER_ERROR;
goto error;