Add some logging to pickle key save/restore (#12831)

... in an attempt to diagnose https://github.com/element-hq/element-desktop/issues/1077
pull/24763/head
Richard van der Hoff 2024-07-26 14:37:29 +01:00 committed by GitHub
parent 25ab9e4e91
commit 95db2d943c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -586,7 +586,7 @@ export async function restoreFromLocalStorage(opts?: { ignoreGuest?: boolean }):
const pickleKey = (await PlatformPeg.get()?.getPickleKey(userId, deviceId ?? "")) ?? undefined; const pickleKey = (await PlatformPeg.get()?.getPickleKey(userId, deviceId ?? "")) ?? undefined;
if (pickleKey) { if (pickleKey) {
logger.log("Got pickle key"); logger.log("Got pickle key for ${userId}|${deviceId}");
} else { } else {
logger.log("No pickle key available"); logger.log("No pickle key available");
} }
@ -658,7 +658,7 @@ export async function setLoggedIn(credentials: IMatrixClientCreds): Promise<Matr
: null; : null;
if (pickleKey) { if (pickleKey) {
logger.log("Created pickle key"); logger.log(`Created pickle key for ${credentials.userId}|${credentials.deviceId}`);
} else { } else {
logger.log("Pickle key not created"); logger.log("Pickle key not created");
} }