mirror of
https://github.com/mjl-/mox.git
synced 2025-07-10 07:14:40 +03:00
track more unexpected panics in metrics
This commit is contained in:
@ -363,7 +363,7 @@ func logPanic(ctx context.Context) {
|
||||
log := xlog.WithContext(ctx)
|
||||
log.Error("recover from panic", mlog.Field("panic", x))
|
||||
debug.PrintStack()
|
||||
metrics.PanicInc("http")
|
||||
metrics.PanicInc("webadmin")
|
||||
}
|
||||
|
||||
// return IPs we may be listening on.
|
||||
|
Reference in New Issue
Block a user