Skip to content

Commit

Permalink
Log environment collection activity at info level (microsoft/vscode-p…
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartik Raj authored Feb 28, 2024
1 parent 529f12c commit f99f42f
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
IPathUtils,
} from '../../common/types';
import { Interpreters } from '../../common/utils/localize';
import { traceError, traceInfo, traceVerbose, traceWarn } from '../../logging';
import { traceError, traceInfo, traceLog, traceVerbose, traceWarn } from '../../logging';
import { IInterpreterService } from '../../interpreter/contracts';
import { defaultShells } from '../../interpreter/activation/service';
import { IEnvironmentActivationService } from '../../interpreter/activation/types';
Expand Down Expand Up @@ -222,7 +222,7 @@ export class TerminalEnvVarCollectionService implements IExtensionActivationServ
if (value !== undefined) {
if (key === 'PS1') {
// We cannot have the full PS1 without executing in terminal, which we do not. Hence prepend it.
traceVerbose(
traceLog(
`Prepending environment variable ${key} in collection with ${value} ${JSON.stringify(
defaultPrependOptions,
)}`,
Expand All @@ -242,7 +242,7 @@ export class TerminalEnvVarCollectionService implements IExtensionActivationServ
if (deactivate) {
value = `${deactivate}${this.separator}${value}`;
}
traceVerbose(
traceLog(
`Prepending environment variable ${key} in collection with ${value} ${JSON.stringify(
options,
)}`,
Expand All @@ -255,7 +255,7 @@ export class TerminalEnvVarCollectionService implements IExtensionActivationServ
if (deactivate) {
value = `${deactivate}${this.separator}${value}`;
}
traceVerbose(
traceLog(
`Prepending environment variable ${key} in collection to ${value} ${JSON.stringify(
options,
)}`,
Expand All @@ -268,7 +268,7 @@ export class TerminalEnvVarCollectionService implements IExtensionActivationServ
applyAtShellIntegration: true,
applyAtProcessCreation: true,
};
traceVerbose(
traceLog(
`Setting environment variable ${key} in collection to ${value} ${JSON.stringify(options)}`,
);
envVarCollection.replace(key, value, options);
Expand Down

0 comments on commit f99f42f

Please sign in to comment.