From b720ad09200eba5430caab8a0e9bcb75296575ca Mon Sep 17 00:00:00 2001 From: Harshit Gangal Date: Thu, 1 Apr 2021 15:27:00 +0530 Subject: [PATCH] addressed review comments Signed-off-by: Harshit Gangal --- go/vt/vtgate/executor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/vt/vtgate/executor.go b/go/vt/vtgate/executor.go index 994e28386c4..6a23241d200 100644 --- a/go/vt/vtgate/executor.go +++ b/go/vt/vtgate/executor.go @@ -159,7 +159,7 @@ func (e *Executor) Execute(ctx context.Context, method string, safeSession *Safe warnings.Add("ResultsExceeded", 1) piiSafeSQL, err := sqlparser.RedactSQLQuery(sql) if err != nil { - piiSafeSQL = sqlparser.Preview(sql).String() + piiSafeSQL = logStats.StmtType } log.Warningf("%q exceeds warning threshold of max memory rows: %v", piiSafeSQL, *warnMemoryRows) }