mirror of
https://gitlab.com/ultrasonic/ultrasonic.git
synced 2025-04-18 02:02:23 +03:00
Merge branch 'dumpConfig' into 'develop'
Dump settings to log when file logging is enabled Closes #891 See merge request ultrasonic/ultrasonic!934
This commit is contained in:
commit
cb781cb76d
@ -59,6 +59,7 @@ class UApp : MultiDexApplication() {
|
||||
ioScope.launch {
|
||||
if (Settings.debugLogToFile) {
|
||||
FileLoggerTree.plantToTimberForest()
|
||||
Util.dumpSettingsToLog()
|
||||
}
|
||||
isFirstRun = Util.isFirstRun()
|
||||
}
|
||||
|
@ -823,4 +823,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