Skip to content

Commit cbebe97

Browse files
committed
Fix condition for skip match
Signed-off-by: Émile Ré <nemile.re@gmail.com>
1 parent 6b6194b commit cbebe97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

log/log.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ func (l *Logger) Named(name string, options ...Option) *Logger {
258258
// Log logs a message at the specified level with optional attributes,
259259
// adding trace and span IDs if the context has a span.
260260
func (l *Logger) Log(ctx context.Context, level Level, msg string, args ...Attr) {
261-
if l.match != nil && !l.match(level, msg, args) {
261+
if l.match != nil && l.match(level, msg, args) {
262262
return
263263
}
264264

0 commit comments

Comments
 (0)