ComboV2: move logging to onStart

This commit is contained in:
Milos Kozak 2023-01-21 16:55:24 +01:00
parent 2cecf28792
commit 13cf19083a

View file

@ -251,14 +251,14 @@ class ComboV2Plugin @Inject constructor (
init {
ComboCtlLogger.backend = AAPSComboCtlLogger(aapsLogger)
updateComboCtlLogLevel()
_pumpDescription.fillFor(PumpType.ACCU_CHEK_COMBO)
}
override fun onStart() {
super.onStart()
updateComboCtlLogLevel()
// Check if there is a pump state in the internal SP. If not, try to
// copy a pump state from the AAPS main SP. It is possible for example
// that AAPS was reinstalled, and the previous settings were imported.