Previously, you needed a TurboSession instance to enable/disable debug logging. However, this was deceiving, since that debug setting was global across all sessions. The change in this PR reflects that debug logging is global across the app and can be set anywhere (ideally once).
Before:
class MainSessionNavHostFragment : TurboSessionNavHostFragment() {
// ...
override open fun onSessionCreated() {
super.onSessionCreated()
if (BuildConfig.DEBUG) {
session.setDebugLoggingEnabled(true)
}
}
Now:
if (BuildConfig.DEBUG) {
Turbo.config.debugLoggingEnabled = true
}
Additionally, logged errors now include the exception stacktrace.
Previously, you needed a
TurboSession
instance to enable/disable debug logging. However, this was deceiving, since that debug setting was global across all sessions. The change in this PR reflects that debug logging is global across the app and can be set anywhere (ideally once).Before:
Now:
Additionally, logged errors now include the exception stacktrace.