Skip to content

Commit

Permalink
Fix log message missing key field (cortexproject#5594)
Browse files Browse the repository at this point in the history
* fix ddb kv log message

Signed-off-by: Ben Ye <[email protected]>

* more logging fix

Signed-off-by: Ben Ye <[email protected]>

---------

Signed-off-by: Ben Ye <[email protected]>
  • Loading branch information
yeya24 authored Oct 10, 2023
1 parent f16bb49 commit dbe4fef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/ring/kv/dynamodb/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func NewClient(cfg Config, cc codec.Codec, logger log.Logger, registerer prometh
staleData: make(map[string]staleData),
backoffConfig: backoffConfig,
}
level.Info(c.logger).Log("dynamodb kv initialized")
level.Info(c.logger).Log("msg", "dynamodb kv initialized")
return c, nil
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/tracing/tracing.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (c *Config) Validate() error {
return errors.New("otlp-endpoint must be defined when using otel exporter")
}
if len(c.Otel.OltpEndpoint) > 0 {
level.Warn(util_log.Logger).Log("DEPRECATED: otel.oltp-endpoint is deprecated. User otel.otlp-endpoint instead.")
level.Warn(util_log.Logger).Log("msg", "DEPRECATED: otel.oltp-endpoint is deprecated. Use otel.otlp-endpoint instead.")
}
}

Expand Down

0 comments on commit dbe4fef

Please sign in to comment.