mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-10 07:04:24 +00:00
Make trace error message so newlines aren't escaped (#1396)
This commit is contained in:
parent
fb76eaf17b
commit
6d9ae7acbb
1 changed files with 1 additions and 2 deletions
|
@ -18,8 +18,7 @@ func Recover(ctx context.Context) {
|
|||
if eventID := sentry.CurrentHub().Recover(err); eventID != nil {
|
||||
ctx.Logger().Info("panic captured", "event_id", *eventID)
|
||||
}
|
||||
ctx.Logger().Error(fmt.Errorf("panic"), "recovered from panic",
|
||||
"stack-trace", panicStack,
|
||||
ctx.Logger().Error(fmt.Errorf("panic"), panicStack,
|
||||
"recover", err,
|
||||
)
|
||||
if !sentry.Flush(time.Second * 5) {
|
||||
|
|
Loading…
Reference in a new issue