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
index 36787b0..b393407 100644
--- a/src/http/modules/ngx_http_limit_req_module.c
+++ b/src/http/modules/ngx_http_limit_req_module.c
@@ -224,11 +224,6 @@
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
index 1519e7f..384155c 100644
--- a/src/http/modules/ngx_http_limit_zone_module.c
+++ b/src/http/modules/ngx_http_limit_zone_module.c
@@ -210,11 +210,6 @@
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;
}