Skip to content

Commit

Permalink
feat: 로그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hyunji1203 committed Sep 16, 2023
1 parent 42cc780 commit 7514d45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import com.now.domain.repository.AuthRepository
import com.now.naaga.data.local.AuthDataSource
import com.now.naaga.data.mapper.toDto
import com.now.naaga.data.remote.retrofit.ServicePool.authService
import com.now.naaga.util.KAKAO_LOGIN_LOG_TAG
import com.now.naaga.util.getValueOrThrow
import com.now.naaga.util.unlinkWithKakao
import kotlinx.coroutines.CoroutineDispatcher
Expand Down Expand Up @@ -34,15 +35,12 @@ class DefaultAuthRepository(
return withContext(dispatcher) {
runCatching {
authService.withdrawalMember()
Log.d("test", "회원탈퇴 성공")
return@withContext true
}.onSuccess {
unlinkWithKakao()
Log.d("test", "카카오 회원탈퇴 성공")
}.onFailure {
Log.d("test", "${it.message}, ${it}")
Log.d(KAKAO_LOGIN_LOG_TAG, "${it.message}, ${it}")
}
Log.d("test", "회원탈퇴 실패")
return@withContext false
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import com.kakao.sdk.common.model.ClientError
import com.kakao.sdk.common.model.ClientErrorCause
import com.kakao.sdk.user.UserApiClient

private const val KAKAO_LOGIN_LOG_TAG = "kakao login"
const val KAKAO_LOGIN_LOG_TAG = "kakao login"
private const val KAKAO_LOGIN_FAIL_MESSAGE = "카카오계정으로 로그인 실패"
private const val KAKAO_LOGIN_SUCCESS_MESSAGE = "카카오계정으로 로그인 성공"
private const val KAKAO_UNLINK_FAIL_MESSAGE = "연결 끊기 실패"
Expand Down

0 comments on commit 7514d45

Please sign in to comment.