From d52302cd1ac3b36a3277c2848d93f495c05e178a Mon Sep 17 00:00:00 2001 From: Sandeep Somavarapu Date: Mon, 11 Dec 2017 19:37:59 +0100 Subject: [PATCH] Fix logging --- .../extensionManagement/node/extensionManagementService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vs/platform/extensionManagement/node/extensionManagementService.ts b/src/vs/platform/extensionManagement/node/extensionManagementService.ts index 8e98dd7857a..0a8bac15123 100644 --- a/src/vs/platform/extensionManagement/node/extensionManagementService.ts +++ b/src/vs/platform/extensionManagement/node/extensionManagementService.ts @@ -606,9 +606,9 @@ export class ExtensionManagementService implements IExtensionManagementService { private async postUninstallExtension(extension: ILocalExtension, error?: string): TPromise { if (error) { - this.logService.info('Successfully uninstalled extension:', extension.identifier.id); - } else { this.logService.error('Failed to uninstall extension:', extension.identifier.id, error); + } else { + this.logService.info('Successfully uninstalled extension:', extension.identifier.id); // only report if extension has a mapped gallery extension. UUID identifies the gallery extension. if (extension.identifier.uuid) { await this.galleryService.reportStatistic(extension.manifest.publisher, extension.manifest.name, extension.manifest.version, StatisticType.Uninstall);