mirror of
https://gitlab.com/ultrasonic/ultrasonic.git
synced 2025-04-24 04:40:56 +03:00
Dump settings to log when file logging is enabled
This commit is contained in:
parent
46ad240306
commit
2ebb333a6e
@ -59,6 +59,7 @@ class UApp : MultiDexApplication() {
|
||||
ioScope.launch {
|
||||
if (Settings.debugLogToFile) {
|
||||
FileLoggerTree.plantToTimberForest()
|
||||
Util.dumpSettingsToLog()
|
||||
}
|
||||
isFirstRun = Util.isFirstRun()
|
||||
}
|
||||
|
@ -775,4 +775,13 @@ object Util {
|
||||
stopForeground(true)
|
||||
}
|
||||
}
|
||||
|
||||
fun dumpSettingsToLog() {
|
||||
Timber.d("Current user preferences")
|
||||
Timber.d("========================")
|
||||
val keys = Settings.preferences.all
|
||||
keys.forEach {
|
||||
Timber.d("${it.key}: ${it.value}")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user