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