# HG changeset patch # User Igor Sysoev # Date 1238182375 0 # Node ID 038dc63b657a89ee1cb19e340acf0c88bfed6809 # Parent 2bce3f6416c6d526e29d06b9a1f3fbb66312a7ae delete duplicate error logging diff --git a/src/http/modules/ngx_http_limit_req_module.c b/src/http/modules/ngx_http_limit_req_module.c --- a/src/http/modules/ngx_http_limit_req_module.c +++ b/src/http/modules/ngx_http_limit_req_module.c @@ -224,11 +224,6 @@ ngx_http_limit_req_handler(ngx_http_requ node = ngx_slab_alloc_locked(ctx->shpool, n); if (node == NULL) { ngx_shmtx_unlock(&ctx->shpool->mutex); - - ngx_log_error(NGX_LOG_CRIT, r->connection->log, 0, - "could not allocate memory in zone \"%V\"", - &lrcf->shm_zone->name); - return NGX_HTTP_SERVICE_UNAVAILABLE; } } diff --git a/src/http/modules/ngx_http_limit_zone_module.c b/src/http/modules/ngx_http_limit_zone_module.c --- a/src/http/modules/ngx_http_limit_zone_module.c +++ b/src/http/modules/ngx_http_limit_zone_module.c @@ -210,11 +210,6 @@ ngx_http_limit_zone_handler(ngx_http_req node = ngx_slab_alloc_locked(shpool, n); if (node == NULL) { ngx_shmtx_unlock(&shpool->mutex); - - ngx_log_error(NGX_LOG_CRIT, r->connection->log, 0, - "could not allocate memory in zone \"%V\"", - &lzcf->shm_zone->name); - return NGX_HTTP_SERVICE_UNAVAILABLE; }