mirror of
https://github.com/ddworken/hishtory.git
synced 2024-11-22 08:14:02 +01:00
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:
parent
b44e53a17b
commit
f449ba0af9
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user