Skip to content

Commit 42ed853

Browse files
author
Kartik Raj
authored
Ensure commands run are not logged twice in Python output channel (#17697)
* Ensure commands run are not logged twice in Python output channel * News entry
1 parent f530a5c commit 42ed853

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

news/2 Fixes/7160.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Ensure commands run are not logged twice in Python output channel.

src/client/common/process/pythonExecutionFactory.ts

-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ export class PythonExecutionFactory implements IPythonExecutionFactory {
8585
pythonPath = this.configService.getSettings(options.resource).pythonPath;
8686
}
8787
const processService: IProcessService = await this.processServiceFactory.create(options.resource);
88-
processService.on('exec', this.logger.logProcess.bind(this.logger));
8988

9089
const windowsStoreInterpreterCheck = (await inDiscoveryExperiment(this.experimentService))
9190
? // Class methods may depend on other properties which belong to the class, so bind the correct context.

0 commit comments

Comments
 (0)