Revert "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 reverts commit b44e53a17b.
This commit is contained in:
David Dworken 2023-12-21 17:05:21 -08:00
parent b44e53a17b
commit f449ba0af9
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)
}