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

View File

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

View File

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