Skip to content

Commit

Permalink
Add more support for logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdurham committed May 1, 2024
1 parent 55d1ebf commit 8a6bdf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/alloy/logging/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ func (l *Logger) Update(o Options) error {
slogadapter.GoKit(l.handler).Log(bufferedLogChunk.kvps...)
} else {
// We now can check to see if if our buffered log is at the right level.
if bufferedLogChunk.handler.handle.Enabled(context.Background(), bufferedLogChunk.record.Level) {
if bufferedLogChunk.handler.Enabled(context.Background(), bufferedLogChunk.record.Level) {
// These will always be valid due to the build handlers call above.
bufferedLogChunk.handler.handle.Handle(context.Background(), bufferedLogChunk.record)
bufferedLogChunk.handler.Handle(context.Background(), bufferedLogChunk.record)
}
}
}
Expand Down

0 comments on commit 8a6bdf8

Please sign in to comment.