mirror of
https://gitlab.com/ultrasonic/ultrasonic.git
synced 2025-06-07 02:53:05 +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 {
|
ioScope.launch {
|
||||||
if (Settings.debugLogToFile) {
|
if (Settings.debugLogToFile) {
|
||||||
FileLoggerTree.plantToTimberForest()
|
FileLoggerTree.plantToTimberForest()
|
||||||
|
Util.dumpSettingsToLog()
|
||||||
}
|
}
|
||||||
isFirstRun = Util.isFirstRun()
|
isFirstRun = Util.isFirstRun()
|
||||||
}
|
}
|
||||||
|
@ -823,4 +823,13 @@ object Util {
|
|||||||
stopForeground(true)
|
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