<div dir="ltr"><div># HG changeset patch<br># User Giovani Rinaldi <<a href="mailto:giovani.rinaldi@azion.com">giovani.rinaldi@azion.com</a>><br># Date 1464122415 0<br># Node ID a6209fc7fc0941be30850050025cfe830805b1a8<br># Parent  bc6fd7afeed6f7433c60634d9b0867ea3241b217<br>Script: fix log level when matching regular expressions<br><br>Log should be written to log directive that accepts debug level.</div><div><div><br>diff -r bc6fd7afeed6 -r a6209fc7fc09 src/http/ngx_http_script.c<br>--- a/src/http/ngx_http_script.c    Tue May 24 21:54:32 2016 +0300<br>+++ b/src/http/ngx_http_script.c    Tue May 24 20:40:15 2016 +0000<br>@@ -933,7 +933,7 @@<br><br>     if (rc == NGX_DECLINED) {<br>         if (e->log || (r->connection->log->log_level & NGX_LOG_DEBUG_HTTP)) {<br>-            ngx_log_error(NGX_LOG_NOTICE, r->connection->log, 0,<br>+            ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,<br>                           "\"%V\" does not match \"%V\"",<br>                           &code->name, &e->line);<br>         }<br>@@ -967,7 +967,7 @@<br>     }<br><br>     if (e->log || (r->connection->log->log_level & NGX_LOG_DEBUG_HTTP)) {<br>-        ngx_log_error(NGX_LOG_NOTICE, r->connection->log, 0,<br>+        ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,<br>                       "\"%V\" matches \"%V\"", &code->name, &e->line);<br>     }<br><br></div></div></div>