Skip to content

Commit 724415d

Browse files
author
Kartik Raj
authored
Log environment collection activity at info level (#22990)
1 parent d0a07de commit 724415d

File tree

1 file changed

+5
-5
lines changed
  • src/client/terminals/envCollectionActivation

1 file changed

+5
-5
lines changed

src/client/terminals/envCollectionActivation/service.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import {
2626
IPathUtils,
2727
} from '../../common/types';
2828
import { Interpreters } from '../../common/utils/localize';
29-
import { traceError, traceInfo, traceVerbose, traceWarn } from '../../logging';
29+
import { traceError, traceInfo, traceLog, traceVerbose, traceWarn } from '../../logging';
3030
import { IInterpreterService } from '../../interpreter/contracts';
3131
import { defaultShells } from '../../interpreter/activation/service';
3232
import { IEnvironmentActivationService } from '../../interpreter/activation/types';
@@ -222,7 +222,7 @@ export class TerminalEnvVarCollectionService implements IExtensionActivationServ
222222
if (value !== undefined) {
223223
if (key === 'PS1') {
224224
// We cannot have the full PS1 without executing in terminal, which we do not. Hence prepend it.
225-
traceVerbose(
225+
traceLog(
226226
`Prepending environment variable ${key} in collection with ${value} ${JSON.stringify(
227227
defaultPrependOptions,
228228
)}`,
@@ -242,7 +242,7 @@ export class TerminalEnvVarCollectionService implements IExtensionActivationServ
242242
if (deactivate) {
243243
value = `${deactivate}${this.separator}${value}`;
244244
}
245-
traceVerbose(
245+
traceLog(
246246
`Prepending environment variable ${key} in collection with ${value} ${JSON.stringify(
247247
options,
248248
)}`,
@@ -255,7 +255,7 @@ export class TerminalEnvVarCollectionService implements IExtensionActivationServ
255255
if (deactivate) {
256256
value = `${deactivate}${this.separator}${value}`;
257257
}
258-
traceVerbose(
258+
traceLog(
259259
`Prepending environment variable ${key} in collection to ${value} ${JSON.stringify(
260260
options,
261261
)}`,
@@ -268,7 +268,7 @@ export class TerminalEnvVarCollectionService implements IExtensionActivationServ
268268
applyAtShellIntegration: true,
269269
applyAtProcessCreation: true,
270270
};
271-
traceVerbose(
271+
traceLog(
272272
`Setting environment variable ${key} in collection to ${value} ${JSON.stringify(options)}`,
273273
);
274274
envVarCollection.replace(key, value, options);

0 commit comments

Comments
 (0)