aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_script.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2006-11-14 12:45:03 +0000
committerIgor Sysoev <igor@sysoev.ru>2006-11-14 12:45:03 +0000
commit58364233a6de999aa3a92103c3fc81b85335bb9e (patch)
treef0ec051b6182855e2f0fd6308080809e9cbbd5dc /src/http/ngx_http_script.c
parent8365f731bfd17c854a1eb3cef0987ba30f2f6ab8 (diff)
downloadnginx-58364233a6de999aa3a92103c3fc81b85335bb9e.tar.gz
nginx-58364233a6de999aa3a92103c3fc81b85335bb9e.zip
debug log should not be under rewrite_log control
Diffstat (limited to 'src/http/ngx_http_script.c')
-rw-r--r--src/http/ngx_http_script.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/http/ngx_http_script.c b/src/http/ngx_http_script.c
index e8bce1911..54dacb317 100644
--- 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_script_engine_t *e)
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_script_engine_t *e)
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);
}
}
}