# HG changeset patch # User Igor Sysoev # Date 1163508303 0 # Node ID eb5cf273e5d2d027886e455019462e2453bf7797 # Parent 9ddb57468082fdf604cfd91a48749bb10228f85b debug log should not be under rewrite_log control diff --git a/src/http/ngx_http_script.c b/src/http/ngx_http_script.c --- a/src/http/ngx_http_script.c +++ b/src/http/ngx_http_script.c @@ -423,10 +423,8 @@ ngx_http_script_copy_code(ngx_http_scrip e->ip += sizeof(ngx_http_script_copy_code_t) + ((code->len + sizeof(uintptr_t) - 1) & ~(sizeof(uintptr_t) - 1)); - if (e->log) { - ngx_log_debug1(NGX_LOG_DEBUG_HTTP, e->request->connection->log, 0, - "http script copy: \"%V\"", &e->buf); - } + ngx_log_debug1(NGX_LOG_DEBUG_HTTP, e->request->connection->log, 0, + "http script copy: \"%V\"", &e->buf); } @@ -477,11 +475,9 @@ ngx_http_script_copy_var_code(ngx_http_s if (value && !value->not_found) { e->pos = ngx_copy(e->pos, value->data, value->len); - if (e->log) { - ngx_log_debug1(NGX_LOG_DEBUG_HTTP, - e->request->connection->log, 0, - "http script var: \"%V\"", &e->buf); - } + ngx_log_debug1(NGX_LOG_DEBUG_HTTP, + e->request->connection->log, 0, + "http script var: \"%V\"", &e->buf); } } }