comparison src/http/modules/ngx_http_auth_request_module.c @ 6480:f01ab2dbcfdc

Fixed logging.
author Sergey Kandaurov <pluknet@nginx.com>
date Thu, 31 Mar 2016 02:33:57 +0300
parents 00bdc9f08a16
children d26db4f82d7d
comparison
equal deleted inserted replaced
6479:dc92298b1852 6480:f01ab2dbcfdc
166 { 166 {
167 return NGX_OK; 167 return NGX_OK;
168 } 168 }
169 169
170 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, 170 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
171 "auth request unexpected status: %d", ctx->status); 171 "auth request unexpected status: %ui", ctx->status);
172 172
173 return NGX_HTTP_INTERNAL_SERVER_ERROR; 173 return NGX_HTTP_INTERNAL_SERVER_ERROR;
174 } 174 }
175 175
176 ctx = ngx_pcalloc(r->pool, sizeof(ngx_http_auth_request_ctx_t)); 176 ctx = ngx_pcalloc(r->pool, sizeof(ngx_http_auth_request_ctx_t));
217 ngx_http_auth_request_done(ngx_http_request_t *r, void *data, ngx_int_t rc) 217 ngx_http_auth_request_done(ngx_http_request_t *r, void *data, ngx_int_t rc)
218 { 218 {
219 ngx_http_auth_request_ctx_t *ctx = data; 219 ngx_http_auth_request_ctx_t *ctx = data;
220 220
221 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, 221 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
222 "auth request done s:%d", r->headers_out.status); 222 "auth request done s:%ui", r->headers_out.status);
223 223
224 ctx->done = 1; 224 ctx->done = 1;
225 ctx->status = r->headers_out.status; 225 ctx->status = r->headers_out.status;
226 226
227 return rc; 227 return rc;