fix: use context.TODO() in logger.Enabled check for improved clarity
This commit is contained in:
@@ -92,7 +92,7 @@ func Log(level int, msg string, args ...interface{}) {
|
|||||||
slogLevel = slog.LevelError
|
slogLevel = slog.LevelError
|
||||||
}
|
}
|
||||||
|
|
||||||
if !logger.Enabled(nil, slogLevel) {
|
if !logger.Enabled(context.TODO(), slogLevel) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user