Skip to content
Snippets Groups Projects
Commit bee011f0 authored by Kenneth Ezekiel's avatar Kenneth Ezekiel
Browse files

add logging

parent 544e0fb2
1 merge request!5Relogin
......@@ -86,6 +86,7 @@ class TokenExpirationService: Service() {
val checkResponse = response.body()
if (checkResponse != null) {
isExpired = false
Log.d("Active", "Token is still active")
}
} else if (response.code() == 401) {
isExpired = true
......@@ -100,7 +101,7 @@ class TokenExpirationService: Service() {
?.let { it1 -> loginService.login(it, it1) } }
if (tokenLogin != null) {
TokenManager.saveToken(tokenLogin)
saveToken(tokenLogin)
Log.d("Token", "New token has been saved!")
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment