From a74a4257098abc6bfb88c44cc5666845a77853cd Mon Sep 17 00:00:00 2001 From: Manan Gupta Date: Wed, 29 Nov 2023 15:19:25 +0530 Subject: [PATCH] feat: add log for error Signed-off-by: Manan Gupta --- go/vt/vttablet/tabletserver/tabletserver.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/go/vt/vttablet/tabletserver/tabletserver.go b/go/vt/vttablet/tabletserver/tabletserver.go index 63f06b125d1..2e1831e0acd 100644 --- a/go/vt/vttablet/tabletserver/tabletserver.go +++ b/go/vt/vttablet/tabletserver/tabletserver.go @@ -246,6 +246,9 @@ func WaitForDBAGrants(config *tabletenv.TabletConfig, waitTime time.Duration) er conn, err := dbconnpool.NewDBConnection(ctx, config.DB.DbaConnector()) if err == nil { res, fetchErr := conn.ExecuteFetch("SHOW GRANTS", 1000, false) + if fetchErr != nil { + log.Errorf("Error running SHOW GRANTS - %v", fetchErr) + } if fetchErr == nil && res != nil && len(res.Rows) > 0 && len(res.Rows[0]) > 0 { privileges := res.Rows[0][0].ToString() // In MySQL 8.0, all the privileges are listed out explicitly, so we can search for SUPER in the output.