Add some logging to pickle key save/restore (#12831)
... in an attempt to diagnose https://github.com/element-hq/element-desktop/issues/1077
This commit is contained in:
parent
25ab9e4e91
commit
95db2d943c
1 changed files with 2 additions and 2 deletions
|
@ -586,7 +586,7 @@ export async function restoreFromLocalStorage(opts?: { ignoreGuest?: boolean }):
|
|||
|
||||
const pickleKey = (await PlatformPeg.get()?.getPickleKey(userId, deviceId ?? "")) ?? undefined;
|
||||
if (pickleKey) {
|
||||
logger.log("Got pickle key");
|
||||
logger.log("Got pickle key for ${userId}|${deviceId}");
|
||||
} else {
|
||||
logger.log("No pickle key available");
|
||||
}
|
||||
|
@ -658,7 +658,7 @@ export async function setLoggedIn(credentials: IMatrixClientCreds): Promise<Matr
|
|||
: null;
|
||||
|
||||
if (pickleKey) {
|
||||
logger.log("Created pickle key");
|
||||
logger.log(`Created pickle key for ${credentials.userId}|${credentials.deviceId}`);
|
||||
} else {
|
||||
logger.log("Pickle key not created");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue