]> git.kaiwu.me - nginx.git/commitdiff
debug log should not be under rewrite_log control
authorIgor Sysoev <igor@sysoev.ru>
Tue, 14 Nov 2006 12:45:03 +0000 (12:45 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 14 Nov 2006 12:45:03 +0000 (12:45 +0000)
src/http/ngx_http_script.c

index e8bce19117bc3e91358acf39adaef7a901480b78..54dacb3178d786e94fb4f5cd2adeff255fd98631 100644 (file)
@@ -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);
         }
     }
 }