From 7922f45c34631fd99995c55de698f9f9a81014e4 Mon Sep 17 00:00:00 2001 From: Rafael Chacon Date: Tue, 17 Sep 2019 10:09:36 -0700 Subject: [PATCH] The error coming from mysql could have the password. We need to redact Signed-off-by: Rafael Chacon --- go/vt/mysqlctl/query.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/vt/mysqlctl/query.go b/go/vt/mysqlctl/query.go index 0051f5bd6d5..984fa34113b 100644 --- a/go/vt/mysqlctl/query.go +++ b/go/vt/mysqlctl/query.go @@ -72,7 +72,7 @@ func (mysqld *Mysqld) executeSuperQueryListConn(ctx context.Context, conn *dbcon for _, query := range queryList { log.Infof("exec %v", redactMasterPassword(query)) if _, err := mysqld.executeFetchContext(ctx, conn, query, 10000, false); err != nil { - return fmt.Errorf("ExecuteFetch(%v) failed: %v", redactMasterPassword(query), err.Error()) + return fmt.Errorf("ExecuteFetch(%v) failed: %v", redactMasterPassword(query), redactMasterPassword(err.Error())) } } return nil