comparison src/http/modules/ngx_http_auth_basic_module.c @ 5433:c37f34bda5ea

Auth basic: "info" logging level on no user/password. This isn't an exceptional condition and normally happens on first request from a client.
author Maxim Dounin <mdounin@mdounin.ru>
date Thu, 31 Oct 2013 04:02:21 +0400
parents d03712b6914b
children f01ab2dbcfdc
comparison
equal deleted inserted replaced
5432:c52a761a2029 5433:c37f34bda5ea
135 135
136 rc = ngx_http_auth_basic_user(r); 136 rc = ngx_http_auth_basic_user(r);
137 137
138 if (rc == NGX_DECLINED) { 138 if (rc == NGX_DECLINED) {
139 139
140 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, 140 ngx_log_error(NGX_LOG_INFO, r->connection->log, 0,
141 "no user/password was provided for basic authentication"); 141 "no user/password was provided for basic authentication");
142 142
143 return ngx_http_auth_basic_set_realm(r, &realm); 143 return ngx_http_auth_basic_set_realm(r, &realm);
144 } 144 }
145 145