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:
David Dworken 2023-10-22 11:46:11 -07:00
parent 2b1af986d8
commit 0f99c7996e
No known key found for this signature in database

View File

@ -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)
}