From 660841abac69bad3dc38def7d134e962318ca1ee Mon Sep 17 00:00:00 2001 From: Manan Gupta Date: Tue, 19 Sep 2023 17:24:10 +0530 Subject: [PATCH] feat: remove excessive logging-a Signed-off-by: Manan Gupta --- go/vt/vttablet/tabletserver/stateful_connection.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/go/vt/vttablet/tabletserver/stateful_connection.go b/go/vt/vttablet/tabletserver/stateful_connection.go index 84552ee4c6a..97d20f594c9 100644 --- a/go/vt/vttablet/tabletserver/stateful_connection.go +++ b/go/vt/vttablet/tabletserver/stateful_connection.go @@ -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" @@ -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) }