]> git.kaiwu.me - nginx.git/commitdiff
Auth basic: "info" logging level on no user/password.
authorMaxim Dounin <mdounin@mdounin.ru>
Thu, 31 Oct 2013 00:02:21 +0000 (04:02 +0400)
committerMaxim Dounin <mdounin@mdounin.ru>
Thu, 31 Oct 2013 00:02:21 +0000 (04:02 +0400)
This isn't an exceptional condition and normally happens on
first request from a client.

src/http/modules/ngx_http_auth_basic_module.c

index e8709e5e9e2fd2aae5066cdf7b64d6a92bab7a68..8ec53295fba4ec203b4dce67a662fecdf686f217 100644 (file)
@@ -137,7 +137,7 @@ ngx_http_auth_basic_handler(ngx_http_request_t *r)
 
     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);