Other: Don't dump stack trace to error when not panicking

This commit is contained in:
James Houlahan
2022-10-24 14:33:09 +02:00
parent 35fa43f47c
commit 798cd5caf3

View File

@ -62,7 +62,7 @@ func catch(handlers ...func() error) {
for _, handler := range handlers {
if err := handler(); err != nil {
logrus.WithError(xerrors.WithStack(err)).Error("Catch handler failed")
logrus.WithError(err).Error("Catch handler failed")
}
}
}