Skip to content

Commit

Permalink
dbutil/transaction: drop 'Already in transaction' log to TRACE level
Browse files Browse the repository at this point in the history
Signed-off-by: Sumner Evans <sumner@beeper.com>
  • Loading branch information
sumnerevans committed Jun 28, 2023
1 parent 13edf59 commit e99578a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/dbutil/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const (

func (db *Database) DoTxn(ctx context.Context, opts *sql.TxOptions, fn func(ctx context.Context) error) error {
if ctx.Value(ContextKeyDatabaseTransaction) != nil {
zerolog.Ctx(ctx).Debug().Msg("Already in a transaction, not creating a new one")
zerolog.Ctx(ctx).Trace().Msg("Already in a transaction, not creating a new one")
return fn(ctx)
}
log := zerolog.Ctx(ctx).With().Str("db_txn_id", util.RandomString(12)).Logger()
Expand Down

0 comments on commit e99578a

Please sign in to comment.