[nginx] Auth basic: "info" logging level on no user/password.

Maxim Dounin mdounin at mdounin.ru
Thu Oct 31 00:06:34 UTC 2013


details:   http://hg.nginx.org/nginx/rev/c37f34bda5ea
branches:  
changeset: 5433:c37f34bda5ea
user:      Maxim Dounin <mdounin at mdounin.ru>
date:      Thu Oct 31 04:02:21 2013 +0400
description:
Auth basic: "info" logging level on no user/password.

This isn't an exceptional condition and normally happens on
first request from a client.

diffstat:

 src/http/modules/ngx_http_auth_basic_module.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git a/src/http/modules/ngx_http_auth_basic_module.c b/src/http/modules/ngx_http_auth_basic_module.c
--- a/src/http/modules/ngx_http_auth_basic_module.c
+++ b/src/http/modules/ngx_http_auth_basic_module.c
@@ -137,7 +137,7 @@ ngx_http_auth_basic_handler(ngx_http_req
 
     if (rc == NGX_DECLINED) {
 
-        ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
+        ngx_log_error(NGX_LOG_INFO, r->connection->log, 0,
                       "no user/password was provided for basic authentication");
 
         return ngx_http_auth_basic_set_realm(r, &realm);



More information about the nginx-devel mailing list