diff options
author | Valentin Bartenev <vbart@nginx.com> | 2020-08-05 16:11:20 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2020-08-05 16:11:20 +0300 |
commit | b0ff245ca8609686a42025af6241279e2b5d2163 (patch) | |
tree | 58ac39db1583803808cb19f5d9737455310dfced /src/nxt_h1proto.c | |
parent | 2b53c7bbbd518131b46867343caaad18534ebd8f (diff) | |
download | unit-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.c | 2 |
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; |