mirror of
https://github.com/ddworken/hishtory.git
synced 2025-02-16 10:31:11 +01:00
Follow up to 083569be17
: What if we just change the message we print on the server-side so that it doesn't trigger gotestsum?
This commit is contained in:
parent
2b1af986d8
commit
0f99c7996e
@ -113,7 +113,7 @@ func withPanicGuard(s *statsd.Client) Middleware {
|
||||
return http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) {
|
||||
defer func() {
|
||||
if r := recover(); r != nil {
|
||||
fmt.Printf("panic: %s\n", r)
|
||||
fmt.Printf("caught panic: %s\n", r)
|
||||
if s != nil {
|
||||
s.Incr("hishtory.error", []string{"handler:" + getFunctionName(h)}, 1.0)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user