dash bugfix: save the LTK but don't log it
This commit is contained in:
parent
3758897bea
commit
9d1267e90d
1 changed files with 3 additions and 2 deletions
|
@ -678,8 +678,9 @@ class OmnipodDashPodStateManagerImpl @Inject constructor(
|
||||||
private fun store() {
|
private fun store() {
|
||||||
try {
|
try {
|
||||||
val cleanPodState = podState.copy(ltk = byteArrayOf()) // do not log ltk
|
val cleanPodState = podState.copy(ltk = byteArrayOf()) // do not log ltk
|
||||||
val serialized = Gson().toJson(cleanPodState)
|
logger.debug(LTag.PUMP, "Storing Pod state: ${Gson().toJson(cleanPodState)}")
|
||||||
logger.debug(LTag.PUMP, "Storing Pod state: $serialized")
|
|
||||||
|
val serialized = Gson().toJson(podState)
|
||||||
sharedPreferences.putString(R.string.key_omnipod_dash_pod_state, serialized)
|
sharedPreferences.putString(R.string.key_omnipod_dash_pod_state, serialized)
|
||||||
} catch (ex: Exception) {
|
} catch (ex: Exception) {
|
||||||
logger.error(LTag.PUMP, "Failed to store Pod state", ex)
|
logger.error(LTag.PUMP, "Failed to store Pod state", ex)
|
||||||
|
|
Loading…
Reference in a new issue