Skip to content

Commit

Permalink
Update bridges/otellogr/logsink_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
pellared authored Oct 28, 2024
1 parent 0e56af1 commit 2059b87
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bridges/otellogr/logsink_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,15 +324,15 @@ func TestLogSinkEnabled(t *testing.T) {
WithLevelSeverity(func(i int) log.Severity {
switch i {
case 0:
return log.SeverityDebug
default:
return log.SeverityInfo
default:
return log.SeverityDebug
}
}),
)

assert.False(t, ls.Enabled(0))
assert.True(t, ls.Enabled(1))
assert.True(t, ls.Enabled(0))
assert.False(t, ls.Enabled(1))
}

func buildRecord(body log.Value, timestamp time.Time, severity log.Severity, attrs []log.KeyValue) log.Record {
Expand Down

0 comments on commit 2059b87

Please sign in to comment.