From b99282399d4bd8113a2d71ca93316f476eb5cb3b Mon Sep 17 00:00:00 2001 From: Daniel Isen <54864769+daniel-yb@users.noreply.github.com> Date: Wed, 14 Feb 2024 13:02:51 -0500 Subject: [PATCH] [CLOUDGA-19510] Switch info logs to debug (#214) --- internal/client/client.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/internal/client/client.go b/internal/client/client.go index f7431d19..81a64630 100644 --- a/internal/client/client.go +++ b/internal/client/client.go @@ -365,7 +365,7 @@ func (a *AuthApiClient) CreateClusterSpec(cmd *cobra.Command, regionInfoList []m for i, regionInfo := range clusterRegionInfo { r := regionInfo.GetPlacementInfo().CloudInfo.Region clusterRegionInfo[i].SetNodeInfo(*regionNodeInfoMap[r]) - logrus.Infof("region=%s, node-info=%v\n", r, clusterRegionInfo[i].GetNodeInfo()) + logrus.Debugf("region=%s, node-info=%v\n", r, clusterRegionInfo[i].GetNodeInfo()) if currRegionNodeInfo != nil && !geoPartitioned && *currRegionNodeInfo != clusterRegionInfo[i].GetNodeInfo() { // Asymmetric node configurations are only allowed for geo-partitioned clusters. logrus.Fatalln("Synchronous cluster regions must have identical node configurations") @@ -449,14 +449,14 @@ func (a *AuthApiClient) CreateClusterSpec(cmd *cobra.Command, regionInfoList []m } func ToClusterNodeInfo(opt *ybmclient.OptionalClusterNodeInfo) ybmclient.ClusterNodeInfo { - clusterNodeInfo := *ybmclient.NewClusterNodeInfoWithDefaults() - clusterNodeInfo.SetNumCores(opt.GetNumCores()) - clusterNodeInfo.SetMemoryMb(opt.GetMemoryMb()) - clusterNodeInfo.SetDiskSizeGb(opt.GetDiskSizeGb()) - if iops, _ := opt.GetDiskIopsOk(); iops != nil { - clusterNodeInfo.SetDiskIops(*iops) - } - return clusterNodeInfo + clusterNodeInfo := *ybmclient.NewClusterNodeInfoWithDefaults() + clusterNodeInfo.SetNumCores(opt.GetNumCores()) + clusterNodeInfo.SetMemoryMb(opt.GetMemoryMb()) + clusterNodeInfo.SetDiskSizeGb(opt.GetDiskSizeGb()) + if iops, _ := opt.GetDiskIopsOk(); iops != nil { + clusterNodeInfo.SetDiskIops(*iops) + } + return clusterNodeInfo } func (a *AuthApiClient) GetInfo(providedAccountID string, providedProjectID string) {