mirror of
https://github.com/nginx/nginx.git
synced 2026-10-21 11:31:24 +00:00
low ENAMETOOLONG logging level
This commit is contained in:
parent
c81582ea67
commit
7f6d71bbc8
3 changed files with 12 additions and 3 deletions
|
|
@ -222,7 +222,10 @@ ngx_http_index_handler(ngx_http_request_t *r)
|
|||
return NGX_HTTP_INTERNAL_SERVER_ERROR;
|
||||
}
|
||||
|
||||
if (of.err == NGX_ENOTDIR || of.err == NGX_EACCES) {
|
||||
if (of.err == NGX_ENOTDIR
|
||||
|| of.err == NGX_ENAMETOOLONG
|
||||
|| of.err == NGX_EACCES)
|
||||
{
|
||||
return ngx_http_index_error(r, clcf, path.data, of.err);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1233,7 +1233,10 @@ ngx_http_core_try_files_phase(ngx_http_request_t *r,
|
|||
if (ngx_open_cached_file(clcf->open_file_cache, &path, &of, r->pool)
|
||||
!= NGX_OK)
|
||||
{
|
||||
if (of.err != NGX_ENOENT && of.err != NGX_ENOTDIR) {
|
||||
if (of.err != NGX_ENOENT
|
||||
&& of.err != NGX_ENOTDIR
|
||||
&& of.err != NGX_ENAMETOOLONG)
|
||||
{
|
||||
ngx_log_error(NGX_LOG_CRIT, r->connection->log, of.err,
|
||||
"%s \"%s\" failed", of.failed, path.data);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1417,7 +1417,10 @@ ngx_http_script_file_code(ngx_http_script_engine_t *e)
|
|||
if (ngx_open_cached_file(clcf->open_file_cache, &path, &of, r->pool)
|
||||
!= NGX_OK)
|
||||
{
|
||||
if (of.err != NGX_ENOENT && of.err != NGX_ENOTDIR) {
|
||||
if (of.err != NGX_ENOENT
|
||||
&& of.err != NGX_ENOTDIR
|
||||
&& of.err != NGX_ENAMETOOLONG)
|
||||
{
|
||||
ngx_log_error(NGX_LOG_CRIT, r->connection->log, of.err,
|
||||
"%s \"%s\" failed", of.failed, value->data);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue