diff options
Diffstat (limited to 'src/core/ngx_log.c')
-rw-r--r-- | src/core/ngx_log.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/ngx_log.c b/src/core/ngx_log.c index 05ee4dd1d..e542920d4 100644 --- a/src/core/ngx_log.c +++ b/src/core/ngx_log.c @@ -375,6 +375,12 @@ static char *ngx_set_error_log(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) } else { cf->cycle->new_log->file->name = value[1]; + + if (ngx_conf_full_name(cf->cycle, &cf->cycle->new_log->file->name) + == NGX_ERROR) + { + return NGX_CONF_ERROR; + } } return ngx_set_error_log_levels(cf, cf->cycle->new_log); |