mirror of
https://github.com/nginx/nginx.git
synced 2024-12-18 21:23:36 -06:00
move debug logging inside ngx_http_file_cache_free()
This commit is contained in:
parent
14c95f99ac
commit
9135a0e022
@ -915,8 +915,8 @@ ngx_http_file_cache_free(ngx_http_cache_t *c, ngx_temp_file_t *tf)
|
||||
|
||||
cache = c->file_cache;
|
||||
|
||||
ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->file.log, 0,
|
||||
"http file cache free");
|
||||
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, c->file.log, 0,
|
||||
"http file cache free, fd: %d", c->file.fd);
|
||||
|
||||
ngx_shmtx_lock(&cache->shpool->mutex);
|
||||
|
||||
|
@ -1725,9 +1725,6 @@ ngx_http_upstream_intercept_errors(ngx_http_request_t *r,
|
||||
if (r->cache) {
|
||||
time_t valid;
|
||||
|
||||
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
|
||||
"http upstream cache fd: %d", r->cache->file.fd);
|
||||
|
||||
valid = ngx_http_file_cache_valid(u->conf->cache_valid, status);
|
||||
|
||||
if (valid) {
|
||||
@ -2992,9 +2989,6 @@ ngx_http_upstream_finalize_request(ngx_http_request_t *r,
|
||||
if (u->cacheable && r->cache) {
|
||||
time_t valid;
|
||||
|
||||
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
|
||||
"http upstream cache fd: %d", r->cache->file.fd);
|
||||
|
||||
if (rc == NGX_HTTP_BAD_GATEWAY || rc == NGX_HTTP_GATEWAY_TIME_OUT) {
|
||||
|
||||
valid = ngx_http_file_cache_valid(u->conf->cache_valid, rc);
|
||||
|
Loading…
Reference in New Issue
Block a user