提交 ff66cdb1 编写于 作者: S Sandeep Somavarapu

#91696 start-up log

上级 a79a6e64
......@@ -97,7 +97,12 @@ export class UserDataAutoSyncService extends UserDataAutoSyncEnablementService i
this.syncTriggerDelayer = this._register(new Delayer<void>(0));
if (userDataSyncStoreService.userDataSyncStore) {
this.updateAutoSync(true);
if (this.isEnabled()) {
this.logService.info('Auto Sync is enabled.');
} else {
this.logService.info('Auto Sync is disabled.');
}
this.updateAutoSync();
if (this.hasToDisableMachineEventually()) {
this.disableMachineEventually();
}
......@@ -108,7 +113,7 @@ export class UserDataAutoSyncService extends UserDataAutoSyncEnablementService i
}
}
private updateAutoSync(init?: boolean): void {
private updateAutoSync(): void {
const { enabled, message } = this.isAutoSyncEnabled();
if (enabled) {
if (this.autoSync.value === undefined) {
......@@ -128,8 +133,8 @@ export class UserDataAutoSyncService extends UserDataAutoSyncEnablementService i
this.autoSync.clear();
}
/* log message when auto sync is disabled during start up or when auto sync is not disabled by user */
else if (message && (init || this.isEnabled())) {
/* log message when auto sync is not disabled by user */
else if (message && this.isEnabled()) {
this.logService.info(message);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册