From d3e0f55d7cfa8f18f8d9abf54ba59a564637a84f Mon Sep 17 00:00:00 2001 From: jafar75 Date: Tue, 26 Dec 2023 16:08:42 +0330 Subject: [PATCH] apply comments --- cmd/run_test.go | 4 ++-- logging/logger.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/run_test.go b/cmd/run_test.go index 1925d6b1..ebaae822 100644 --- a/cmd/run_test.go +++ b/cmd/run_test.go @@ -147,8 +147,8 @@ func Test_runCmdWithMultiTenancy(t *testing.T) { runCmd.Print(output) // Check if GatewayD started and stopped correctly. assert.Contains(t, output, "GatewayD is running") - assert.Contains(t, output, "There are clients available in the pool count=10 group=default name=default") - assert.Contains(t, output, "There are clients available in the pool count=10 group=test name=test") + assert.Contains(t, output, "There are clients available in the pool count=10 group=default") + assert.Contains(t, output, "There are clients available in the pool count=10 group=test") assert.Contains(t, output, "GatewayD is listening address=0.0.0.0:15432") assert.Contains(t, output, "GatewayD is listening address=0.0.0.0:15433") assert.Contains(t, output, "Stopped all servers") diff --git a/logging/logger.go b/logging/logger.go index c7fbcc4f..1048ff4d 100644 --- a/logging/logger.go +++ b/logging/logger.go @@ -99,7 +99,7 @@ func NewLogger(ctx context.Context, cfg LoggerConfig) zerolog.Logger { multiWriter := zerolog.MultiLevelWriter(outputs...) logger := zerolog.New(multiWriter) logger = logger.With().Timestamp().Logger() - logger = logger.With().Any("group", cfg.Name).Logger() + logger = logger.With().Str("group", cfg.Name).Logger() span.End()