From ebcca2e3dfef499ab75c56c0ba3a01b8863de8cb Mon Sep 17 00:00:00 2001 From: deepthi Date: Wed, 27 Mar 2019 18:16:54 -0700 Subject: [PATCH] improve error message with more information Signed-off-by: deepthi --- go/vt/vttablet/tabletmanager/state_change.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/vt/vttablet/tabletmanager/state_change.go b/go/vt/vttablet/tabletmanager/state_change.go index 62b1e2c2e2f..e2fa8dd6838 100644 --- a/go/vt/vttablet/tabletmanager/state_change.go +++ b/go/vt/vttablet/tabletmanager/state_change.go @@ -220,7 +220,7 @@ func (agent *ActionAgent) changeCallback(ctx context.Context, oldTablet, newTabl } srvKeyspace, err := agent.TopoServer.GetSrvKeyspace(ctx, newTablet.Alias.Cell, newTablet.Keyspace) if err != nil { - log.Error("Fail to get SrvKeyspace") + log.Errorf("failed to get SrvKeyspace %v with: %v", newTablet.Keyspace, err) } else { for _, partition := range srvKeyspace.GetPartitions() {