Skip to content

Commit

Permalink
Fix determination of minimum log level for dispatch logger
Browse files Browse the repository at this point in the history
  • Loading branch information
twyatt committed Apr 25, 2023
1 parent ac62e48 commit da4c6f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logging/src/commonMain/kotlin/DispatchLogger.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ private data class DispatcherState(
val consumers: Set<Logger>,
) {
val logLevel: LogLevel by lazy {
consumers.maxOfOrNull { it.minimumLogLevel }
consumers.minOfOrNull { it.minimumLogLevel }
?: LogLevel.Assert
}
}
Expand Down

0 comments on commit da4c6f4

Please sign in to comment.