mirror of
https://github.com/ddworken/hishtory.git
synced 2024-12-23 23:39:02 +01:00
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:
parent
d4af254ea7
commit
b44e53a17b
@ -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