add logging

This commit is contained in:
Sandeep Somavarapu
2020-05-27 12:56:33 +02:00
parent 9f83b385d4
commit e8c1a1e76e
@@ -53,7 +53,7 @@ export class UserDataAutoSyncService extends Disposable implements IUserDataAuto
}
} else {
if (this.autoSync.value !== undefined) {
this.logService.trace('Auto Sync: Disabled because', reason);
this.logService.info('Auto Sync: Disabled because', reason);
this.autoSync.clear();
}
}
@@ -173,6 +173,7 @@ class AutoSync extends Disposable {
try {
await this.userDataSyncService.sync();
} catch (e) {
this.logService.error(e);
error = e;
}
this._onDidFinishSync.fire(error);