Skip to content

Commit

Permalink
drop timedPublicLog
Browse files Browse the repository at this point in the history
fixes #11676
  • Loading branch information
joaomoreno committed Sep 8, 2016
1 parent 24f3543 commit 151a0bc
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -355,12 +355,13 @@ export class ExtensionGalleryService implements IExtensionGalleryService {
const url = `${ getAssetSource(rawVersion.files, AssetType.VSIX) }?install=true`;
const zipPath = path.join(tmpdir(), extension.id);
const data = getGalleryExtensionTelemetryData(extension);
const timer = this.telemetryService.timedPublicLog('galleryService:downloadVSIX', data);
const startTime = new Date().getTime();
const log = duration => this.telemetryService.publicLog('galleryService:downloadVSIX', assign(data, { duration }));

return this.getCommonHeaders()
.then(headers => this._getAsset({ url, headers }))
.then(context => download(zipPath, context))
.then(() => timer.stop())
.then(() => log(new Date().getTime() - startTime))
.then(() => zipPath);
});
});
Expand Down

0 comments on commit 151a0bc

Please sign in to comment.