Skip to content

Commit c2c040d

Browse files
authored
Lifecycle: add a bit more logging (#30414)
... to see what exactly it thinks is wrong with the session This may be useful in debugging #30337 and #29708. but will likely be useful in any case.
1 parent c98358c commit c2c040d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Lifecycle.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,9 @@ export async function restoreSessionFromStorage(opts?: { ignoreGuest?: boolean }
621621
await getStoredSessionVars();
622622

623623
if (hasAccessToken && !accessToken) {
624+
logger.warn(
625+
"restoreSessionFromStorage: storage indicates we should have an access token, but we do not. Displaying StorageEvictedDialog",
626+
);
624627
await abortLogin();
625628
}
626629

@@ -823,6 +826,7 @@ async function doSetLoggedIn(
823826
// crypto store, we'll be generally confused when handling encrypted data.
824827
// Show a modal recommending a full reset of storage.
825828
if (results.dataInLocalStorage && results.cryptoInited && !results.dataInCryptoStore) {
829+
logger.warn("doSetLoggedIn: StorageManager consistency check failed; displaying StorageEvictedDialog.");
826830
await abortLogin();
827831
}
828832

0 commit comments

Comments
 (0)