Skip to content

Commit

Permalink
fix: previous logs getting discarded before apisix custom handler (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
Revolyssup authored Dec 10, 2024
1 parent 22cbc7d commit cadf995
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ngx_http_apisix_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -877,6 +877,7 @@ ngx_http_apisix_combined_error_log_handler(ngx_http_request_t *r, ngx_http_reque
//p - buf calculates the number of bytes written by the original log handler into the buffer.
//len -= (p - buf) reduces the remaining buffer length by the amount already used.
len -= p-buf;
buf = p;

//Apisix log handler
buf = ngx_http_apisix_error_log_handler(r, buf, len);
Expand Down

0 comments on commit cadf995

Please sign in to comment.