Closed H0llyW00dzZ closed 1 month ago
It works well in combination with a rate limiter for scalability:
$ curl -i -H "Accept: application/json" http://localhost:8080/panic
HTTP/1.1 429 Too Many Requests
Server: H0llyW00dzZ Project
Date: Sun, 07 Apr 2024 17:40:23 GMT
Content-Type: application/json
Content-Length: 54
Retry-After: 44
{"error":"Too many requests, please try again later."}
Closing this issue as well as the linked PR. See the comment in the PR for explanation.
Tell us about your feature request
As currently there is no middleware feature especially for panic recovery, if anyone agrees, I can submit a PR.
Example:
Default Fiber
In the logger:
A Better Panic Recovery by Manipulation
In the logger:
Disclaimer