Remove colon so that this doesn't match against gotestsum looking for the substring "panic:", which can happen depending on how stdout is buffer

This commit is contained in:
David Dworken 2023-12-20 16:34:10 -08:00
parent d4af254ea7
commit b44e53a17b
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("caught panic: %s\n", r)
fmt.Printf("caught panic %s\n", r)
if s != nil {
s.Incr("hishtory.error", []string{"handler:" + getFunctionName(h)}, 1.0)
}