Skip to content

Commit

Permalink
Remove excessive logging in transactions (#14021)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuptaManan100 authored Sep 19, 2023
1 parent d3a3d64 commit a45ad77
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions go/vt/vttablet/tabletserver/stateful_connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import (
"vitess.io/vitess/go/pools"
"vitess.io/vitess/go/sqltypes"
"vitess.io/vitess/go/vt/callerid"
"vitess.io/vitess/go/vt/log"
"vitess.io/vitess/go/vt/servenv"
"vitess.io/vitess/go/vt/vterrors"
"vitess.io/vitess/go/vt/vttablet/tabletserver/connpool"
Expand Down Expand Up @@ -277,9 +276,6 @@ func (sc *StatefulConnection) LogTransaction(reason tx.ReleaseReason) {
sc.Stats().UserTransactionCount.Add([]string{username, reason.Name()}, 1)
sc.Stats().UserTransactionTimesNs.Add([]string{username, reason.Name()}, int64(duration))
sc.txProps.Stats.Add(reason.Name(), duration)
if sc.txProps.LogToFile {
log.Infof("Logged transaction: %s", sc.String(sc.env.Config().SanitizeLogMessages))
}
tabletenv.TxLogger.Send(sc)
}

Expand Down

0 comments on commit a45ad77

Please sign in to comment.