Skip to content

Commit 5eef525

Browse files
author
Kartik Raj
authored
Add logging when interpreter path changes (#21210)
For #21208
1 parent 8d291f7 commit 5eef525

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/client/common/interpreterPathService.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import * as fs from 'fs-extra';
77
import { inject, injectable } from 'inversify';
88
import { ConfigurationChangeEvent, ConfigurationTarget, Event, EventEmitter, Uri } from 'vscode';
9-
import { traceError } from '../logging';
9+
import { traceError, traceVerbose } from '../logging';
1010
import { IApplicationEnvironment, IWorkspaceService } from './application/types';
1111
import { PythonSettings } from './configSettings';
1212
import { isTestExecution } from './constants';
@@ -56,6 +56,7 @@ export class InterpreterPathService implements IInterpreterPathService {
5656
public async onDidChangeConfiguration(event: ConfigurationChangeEvent) {
5757
if (event.affectsConfiguration(`python.${defaultInterpreterPathSetting}`)) {
5858
this._didChangeInterpreterEmitter.fire({ uri: undefined, configTarget: ConfigurationTarget.Global });
59+
traceVerbose('Interpreter Path updated', `python.${defaultInterpreterPathSetting}`);
5960
}
6061
}
6162

@@ -129,6 +130,7 @@ export class InterpreterPathService implements IInterpreterPathService {
129130
if (persistentSetting.value !== pythonPath) {
130131
await persistentSetting.updateValue(pythonPath);
131132
this._didChangeInterpreterEmitter.fire({ uri: resource, configTarget });
133+
traceVerbose('Interpreter Path updated', settingKey, pythonPath);
132134
}
133135
}
134136

0 commit comments

Comments
 (0)