mirror of
https://github.com/cranci1/Sora.git
synced 2026-03-11 17:45:37 +00:00
fixed logger issue
This commit is contained in:
parent
501a3da48f
commit
bca07c9c46
2 changed files with 6 additions and 6 deletions
|
|
@ -23,9 +23,9 @@ struct SoraApp: App {
|
||||||
|
|
||||||
TraktToken.checkAuthenticationStatus { isAuthenticated in
|
TraktToken.checkAuthenticationStatus { isAuthenticated in
|
||||||
if isAuthenticated {
|
if isAuthenticated {
|
||||||
Logger.shared.log("Trakt authentication is valid")
|
Logger.shared.log("Trakt authentication is valid", type: "Debug")
|
||||||
} else {
|
} else {
|
||||||
Logger.shared.log("Trakt authentication required", type: "Error")
|
Logger.shared.log("Trakt authentication required", type: "Debug")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -159,8 +159,8 @@ class TraktToken {
|
||||||
guard status == errSecSuccess,
|
guard status == errSecSuccess,
|
||||||
let tokenData = result as? Data,
|
let tokenData = result as? Data,
|
||||||
let token = String(data: tokenData, encoding: .utf8) else {
|
let token = String(data: tokenData, encoding: .utf8) else {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
return token
|
return token
|
||||||
}
|
}
|
||||||
|
|
@ -179,8 +179,8 @@ class TraktToken {
|
||||||
guard status == errSecSuccess,
|
guard status == errSecSuccess,
|
||||||
let tokenData = result as? Data,
|
let tokenData = result as? Data,
|
||||||
let token = String(data: tokenData, encoding: .utf8) else {
|
let token = String(data: tokenData, encoding: .utf8) else {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
return token
|
return token
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue