Skip to content

Commit ee51661

Browse files
committed
fix(nginx): send again is not an error, and can happens when connection is not available, avoid log error on it
1 parent 670ba6a commit ee51661

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngx_http_redirectionio_module.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ static ngx_int_t ngx_http_redirectionio_redirect_handler(ngx_http_request_t *r)
337337
status = ngx_http_redirectionio_write_match_action(ctx->resource->peer.connection->write);
338338

339339
if (status == NGX_AGAIN) {
340-
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, "[redirectionio] send again");
340+
ngx_log_debug0(NGX_LOG_ERR, r->connection->log, 0, "[redirectionio] send again");
341341
ctx->resource->peer.connection->write->handler = ngx_http_redirectionio_write_match_action_handler;
342342

343343
return NGX_AGAIN;

0 commit comments

Comments
 (0)