Donot log if the current window is running extension tests

This commit is contained in:
Sandeep Somavarapu
2021-07-02 14:54:32 +02:00
parent 73a2f1365a
commit c794b4d2b7

View File

@@ -148,11 +148,17 @@ export class UserDataSyncWorkbenchService extends Disposable implements IUserDat
this.logService.trace('Settings Sync: Initializing accounts');
await this.initialize();
} catch (error) {
this.logService.error(error);
// Do not log if the current window is running extension tests
if (!this.environmentService.extensionTestsLocationURI) {
this.logService.error(error);
}
}
if (this.accountStatus === AccountStatus.Uninitialized) {
this.logService.warn('Settings Sync: Accounts are not initialized');
// Do not log if the current window is running extension tests
if (!this.environmentService.extensionTestsLocationURI) {
this.logService.warn('Settings Sync: Accounts are not initialized');
}
} else {
this.logService.trace('Settings Sync: Accounts are initialized');
}