Remove tokens from logs

This commit is contained in:
sim 2022-09-20 01:38:56 +02:00
parent fed27ca4fc
commit 17ba764518
3 changed files with 8 additions and 8 deletions

View File

@ -84,10 +84,10 @@ object ApiUtils {
}
override fun onNext(response: ApiResponse) {
val deviceIdentifier: String = response.deviceId
Log.d(TAG, "Device Identifier: $deviceIdentifier")
saveDeviceId(context, deviceIdentifier)
deviceId = deviceIdentifier
response.deviceId.let {
saveDeviceId(context, it)
deviceId = it
}
}
override fun onError(e: Throwable) {
@ -105,7 +105,7 @@ object ApiUtils {
})
} else {
// Sync directly
Log.d(TAG, "Found deviceId: $deviceId")
Log.d(TAG, "Found saved deviceId")
deviceId?.let {
cSync(context, it)
}

View File

@ -89,7 +89,7 @@ object DistributorUtils {
val db = getDb(context)
val app = db.getPackageName(connectorToken)
return if (app.isBlank()) {
Log.w(TAG, "No app found for $connectorToken")
Log.w(TAG, "No app found for this token")
null
} else {
app

View File

@ -76,7 +76,7 @@ class RegisterBroadcastReceiver : BroadcastReceiver() {
sendEndpoint(context.applicationContext, connectorToken)
}
} else {
Log.d(TAG, "Already registering $connectorToken")
Log.d(TAG, "Already registering this token")
}
}
}
@ -101,7 +101,7 @@ class RegisterBroadcastReceiver : BroadcastReceiver() {
Log.d(TAG, "Could not delete app")
}
} else {
Log.d(TAG, "Already deleting $connectorToken")
Log.d(TAG, "Already deleting this token")
}
}
}