#133201 add more logging

This commit is contained in:
Sandeep Somavarapu
2021-11-09 16:57:10 +01:00
parent 8510f3265f
commit a315fd8f2e
2 changed files with 6 additions and 2 deletions

View File

@@ -657,8 +657,10 @@ export class UserDataSyncWorkbenchService extends Disposable implements IUserDat
if (this._cachedCurrentSessionId !== cachedSessionId) {
this._cachedCurrentSessionId = cachedSessionId;
if (cachedSessionId === undefined) {
this.logService.info('Settings Sync: Reset current session');
this.storageService.remove(UserDataSyncWorkbenchService.CACHED_SESSION_STORAGE_KEY, StorageScope.GLOBAL);
} else {
this.logService.info('Settings Sync: Updated current session', cachedSessionId);
this.storageService.store(UserDataSyncWorkbenchService.CACHED_SESSION_STORAGE_KEY, cachedSessionId, StorageScope.GLOBAL, StorageTarget.MACHINE);
}
}