Skip to content

Commit

Permalink
Merge pull request #12207 from smartcontractkit/jtw/logging-fix-cherr…
Browse files Browse the repository at this point in the history
…ypick

change error log to warn log (#12204)
  • Loading branch information
snehaagni authored Feb 28, 2024
2 parents 1c6ed78 + b9de3be commit 960e3ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/services/pg/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func sqlxTransactionQ(ctx context.Context, db txBeginner, lggr logger.Logger, fn
panic(fmt.Sprintf("panic in transaction; aborting rollback that took longer than 10s: %s", p))
}
} else if err != nil {
lggr.Errorf("Error in transaction, rolling back: %s", err)
lggr.Warnf("Error in transaction, rolling back: %s", err)
// An error occurred, rollback and return error
if rerr := tx.Rollback(); rerr != nil {
err = multierr.Combine(err, errors.WithStack(rerr))
Expand Down

0 comments on commit 960e3ae

Please sign in to comment.