Skip to content

Commit 991f9b0

Browse files
Kyle-Yejesusjimsa
authored andcommitted
[Optimize] Enable LogForEachSlowPath by default (Dimillian#2350)
1 parent 6a0c5ce commit 991f9b0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

IceCubesApp/App/Main/IceCubesApp.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,10 @@ struct IceCubesApp: App {
3838

3939
init() {
4040
#if DEBUG
41-
// Enable "GraphReuseLogging" for debugging purpose
42-
// subsystem: "com.apple.SwiftUI" category: "GraphReuse"
43-
UserDefaults.standard.register(defaults: ["com.apple.SwiftUI.GraphReuseLogging": true])
41+
UserDefaults.standard.register(defaults: [
42+
"com.apple.SwiftUI.GraphReuseLogging": true, // Enable "GraphReuseLogging" by default. The log can be found via - subsystem: "com.apple.SwiftUI" category: "GraphReuse"
43+
"LogForEachSlowPath": true, // Enable "LogForEachSlowPath" by default. The log can be found via - subsystem: "com.apple.SwiftUI" category: "Invalid Configuration"
44+
])
4445
#endif
4546
}
4647

0 commit comments

Comments
 (0)