diff --git a/android/app/src/main/java/com/now/naaga/data/repository/DefaultAuthRepository.kt b/android/app/src/main/java/com/now/naaga/data/repository/DefaultAuthRepository.kt index 84b17bfc1..188ccff77 100644 --- a/android/app/src/main/java/com/now/naaga/data/repository/DefaultAuthRepository.kt +++ b/android/app/src/main/java/com/now/naaga/data/repository/DefaultAuthRepository.kt @@ -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 @@ -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 } } diff --git a/android/app/src/main/java/com/now/naaga/util/KakaoLoginUtil.kt b/android/app/src/main/java/com/now/naaga/util/KakaoLoginUtil.kt index c1ace8d07..40d5f8ccf 100644 --- a/android/app/src/main/java/com/now/naaga/util/KakaoLoginUtil.kt +++ b/android/app/src/main/java/com/now/naaga/util/KakaoLoginUtil.kt @@ -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 = "연결 끊기 실패"