Loki: Fix healthcheck logger always appending endpoint (#96531)

* Loki: Fix healthcheck logger always appending `endpoint`

* add test
This commit is contained in:
Sven Grossmann
2024-11-15 12:51:52 +01:00
committed by GitHub
parent 927d0dddfe
commit 5965aa9aca
3 changed files with 16 additions and 3 deletions
@@ -186,8 +186,9 @@ func (l *logWrapper) Level() sdklog.Level {
}
func (l *logWrapper) With(args ...any) sdklog.Logger {
l.logger = l.logger.New(args...)
return l
return &logWrapper{
logger: l.logger.New(args...),
}
}
func (l *logWrapper) FromContext(ctx context.Context) sdklog.Logger {