From b9de3beb60fc3e8cec9980d5204d48ce1c4394b9 Mon Sep 17 00:00:00 2001 From: Jim W Date: Wed, 28 Feb 2024 14:30:16 -0500 Subject: [PATCH] change error log to warn log (#12204) Co-authored-by: Prashant Yadav <34992934+prashantkumar1982@users.noreply.github.com> --- core/services/pg/transaction.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/services/pg/transaction.go b/core/services/pg/transaction.go index fd7e74baca3..d60270b4fe8 100644 --- a/core/services/pg/transaction.go +++ b/core/services/pg/transaction.go @@ -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))