Navigation Menu

Skip to content

Commit

Permalink
groonga-httpd: fix a bug that custom log file is ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jan 26, 2015
1 parent 197b297 commit bd0a40f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/httpd/nginx-module/ngx_http_groonga_module.c
Expand Up @@ -1201,7 +1201,7 @@ ngx_http_groonga_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child)
GRN_CACHE_DEFAULT_MAX_N_ENTRIES);

#ifdef NGX_HTTP_GROONGA_LOG_PATH
{
if (!conf->log_file) {
ngx_str_t default_log_path;
default_log_path.data = (u_char *)NGX_HTTP_GROONGA_LOG_PATH;
default_log_path.len = strlen(NGX_HTTP_GROONGA_LOG_PATH);
Expand All @@ -1214,8 +1214,6 @@ ngx_http_groonga_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child)
return NGX_CONF_ERROR;
}
}
#else
conf->log_file = NULL;
#endif

ngx_conf_merge_str_value(conf->query_log_path, prev->query_log_path,
Expand Down

0 comments on commit bd0a40f

Please sign in to comment.