Fix logging

This commit is contained in:
Sandeep Somavarapu
2017-12-11 19:39:19 +01:00
parent 97876fc0f5
commit d52302cd1a
@@ -606,9 +606,9 @@ export class ExtensionManagementService implements IExtensionManagementService {
private async postUninstallExtension(extension: ILocalExtension, error?: string): TPromise<void> {
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);