Skip to content

Commit

Permalink
Add SignInType info to logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mchowning committed May 4, 2023
1 parent 90ed251 commit 974ca64
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,12 @@ class SyncManagerImpl @Inject constructor(
private suspend fun fetchAccessToken(account: Account): AccessToken? {
val refreshToken = syncAccountManager.getRefreshToken(account) ?: return null
return try {
Timber.d("Refreshing the access token")
val signInType = syncAccountManager.getSignInType(account)
LogBuffer.i(LogBuffer.TAG_BACKGROUND_TASKS, "Fetching the access token, SignInType: $signInType")
val tokenResponse = downloadTokens(
email = account.name,
refreshToken = refreshToken,
syncServerManager = syncServerManager,
signInType = syncAccountManager.getSignInType(account),
signInType = signInType,
signInSource = SignInSource.AccountAuthenticator
)

Expand Down Expand Up @@ -419,9 +419,8 @@ class SyncManagerImpl @Inject constructor(
private suspend fun downloadTokens(
email: String,
refreshToken: RefreshToken,
syncServerManager: SyncServerManager,
signInSource: SignInSource,
signInType: AccountConstants.SignInType
signInType: AccountConstants.SignInType,
): LoginTokenResponse {
val properties = mapOf(TRACKS_KEY_SIGN_IN_SOURCE to signInSource.analyticsValue)
try {
Expand Down

0 comments on commit 974ca64

Please sign in to comment.