Skip to content

Commit

Permalink
apply comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jafar75 committed Dec 26, 2023
1 parent 21d444b commit d3e0f55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion logging/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit d3e0f55

Please sign in to comment.