Skip to content

Commit c56d74b

Browse files
authored
Downgrade the mapping of warnings to the default log level (#1238)
- Upgrading warnings to error level is counterintuitive. Since there is no warning level, use default level.
1 parent 5ae887c commit c56d74b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/ContainerLog/OSLogHandler.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ extension Logger.Level {
9393
return .debug
9494
case .info:
9595
return .info
96-
case .notice:
96+
case .notice, .warning:
9797
return .default
98-
case .error, .warning:
98+
case .error:
9999
return .error
100100
case .critical:
101101
return .fault

0 commit comments

Comments
 (0)