mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-10 21:39:12 +00:00
Log where the user's state and caches folders were setup on startup.
This commit is contained in:
parent
feaaeb5090
commit
16d3cb6f3f
@ -80,6 +80,12 @@ extension SessionDirectories {
|
||||
}
|
||||
}
|
||||
|
||||
extension SessionDirectories: CustomStringConvertible {
|
||||
var description: String {
|
||||
"Data: \(dataPath) Caches: \(cachePath)"
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: Migrations
|
||||
|
||||
private extension URL {
|
||||
|
@ -72,6 +72,8 @@ class UserSessionStore: UserSessionStoreProtocol {
|
||||
pusherNotificationClientIdentifier: clientProxy.pusherNotificationClientIdentifier),
|
||||
forUsername: userID)
|
||||
|
||||
MXLog.info("Set up session for user \(userID) at: \(sessionDirectories)")
|
||||
|
||||
return .success(buildUserSessionWithClient(clientProxy))
|
||||
} catch {
|
||||
MXLog.error("Failed creating user session with error: \(error)")
|
||||
@ -134,6 +136,8 @@ class UserSessionStore: UserSessionStoreProtocol {
|
||||
|
||||
try await client.restoreSession(session: credentials.restorationToken.session)
|
||||
|
||||
MXLog.info("Set up session for user \(credentials.userID) at: \(credentials.restorationToken.sessionDirectories)")
|
||||
|
||||
return await .success(setupProxyForClient(client))
|
||||
} catch {
|
||||
MXLog.error("Failed restoring login with error: \(error)")
|
||||
|
Loading…
x
Reference in New Issue
Block a user