From 70c7ea656d7a3153ae769dac247aa19b1088eec3 Mon Sep 17 00:00:00 2001 From: Shuning Chen Date: Tue, 2 Jul 2024 16:28:50 +0800 Subject: [PATCH] address Signed-off-by: Shuning Chen --- client/resource_group/controller/controller.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/resource_group/controller/controller.go b/client/resource_group/controller/controller.go index c64c84a10b8..f47953ee32a 100644 --- a/client/resource_group/controller/controller.go +++ b/client/resource_group/controller/controller.go @@ -543,7 +543,7 @@ func (c *ResourceGroupsController) sendTokenBucketRequests(ctx context.Context, if err != nil { // Don't log any errors caused by the stopper canceling the context. if !errors.ErrorEqual(err, context.Canceled) { - log.Info("[resource group controller] token bucket rpc error", zap.Error(err)) + log.Error("[resource group controller] token bucket rpc error", zap.Error(err)) } resp = nil failedTokenRequestDuration.Observe(latency.Seconds()) @@ -1057,7 +1057,7 @@ func (gc *groupCostController) applyBasicConfigForRUTokenCounters() { cfg.NewRate = 99999999 }) counter.limiter.Reconfigure(gc.run.now, cfg, resetLowProcess()) - log.Info("[resource group controller] resource token bucket enter degraded mode", zap.String("resource-group", gc.name), zap.String("type", rmpb.RequestUnitType_name[int32(typ)])) + log.Info("[resource group controller] resource token bucket enter degraded mode", zap.String("name", gc.name), zap.String("type", rmpb.RequestUnitType_name[int32(typ)])) } }