Skip to content

Commit

Permalink
Platform: fix inversed debug category check
Browse files Browse the repository at this point in the history
This previously caused debug categories to be disabled whenever the user tried to enable them, and all were enabled unless manually disabled!
  • Loading branch information
lokka30 committed Jan 6, 2025
1 parent ff56fb6 commit c846737
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ interface Platform {
*/
@Suppress("unused")
fun debugLog(cat: DebugCategory, msg: Supplier<Any>) {
if (debugManager.enabled(cat)) {
if (!debugManager.enabled(cat)) {
return
}

Expand Down

0 comments on commit c846737

Please sign in to comment.