From e240acd752158b17ddffa8dc3cfe15c8056d3aa1 Mon Sep 17 00:00:00 2001 From: yuanruji Date: Wed, 23 Oct 2024 11:47:56 +0800 Subject: [PATCH] 1111 --- .../db-resource/internal/controller/statistic/statistic.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dbm-services/common/db-resource/internal/controller/statistic/statistic.go b/dbm-services/common/db-resource/internal/controller/statistic/statistic.go index 3fde36d190..288655e529 100644 --- a/dbm-services/common/db-resource/internal/controller/statistic/statistic.go +++ b/dbm-services/common/db-resource/internal/controller/statistic/statistic.go @@ -122,12 +122,17 @@ func (s *Handler) ResourceDistribution(c *gin.Context) { } dbmClient := dbmapi.NewDbmClient() + logger.Info("query dbm spec param: %v", param.SpecParam.getQueryParam()) specList, err := dbmClient.GetDbmSpec(param.SpecParam.getQueryParam()) if err != nil { logger.Error("get dbm spec failed: %v", err) s.SendResponse(c, err, "Failed to get DBM specifications", "") return } + logger.Info("get dbm spec count: %d", len(specList)) + for _, spec := range specList { + logger.Info("name:%s,machine type:%s,spec id:%d,info %v", spec.SpecName, spec.SpecMachineType, spec.SpecId, spec) + } allLogicCityInfos, err := dbmapi.GetAllLogicCityInfo() if err != nil { logger.Error("get all logic city info failed: %v", err)