Skip to content

Commit

Permalink
change error log to warn log (#12204)
Browse files Browse the repository at this point in the history
Co-authored-by: Prashant Yadav <[email protected]>
  • Loading branch information
poopoothegorilla and prashantkumar1982 committed Feb 28, 2024
1 parent 1c6ed78 commit b9de3be
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 b9de3be

Please sign in to comment.