From f99f42fd9f072b5a330f08c337db1c5ce0c48453 Mon Sep 17 00:00:00 2001 From: Kartik Raj Date: Wed, 28 Feb 2024 06:58:22 -0600 Subject: [PATCH] Log environment collection activity at info level (microsoft/vscode-python#22990) --- .../terminals/envCollectionActivation/service.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/extensions/positron-python/src/client/terminals/envCollectionActivation/service.ts b/extensions/positron-python/src/client/terminals/envCollectionActivation/service.ts index 3ca0b39582ae..447150c0f818 100644 --- a/extensions/positron-python/src/client/terminals/envCollectionActivation/service.ts +++ b/extensions/positron-python/src/client/terminals/envCollectionActivation/service.ts @@ -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'; @@ -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, )}`, @@ -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, )}`, @@ -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, )}`, @@ -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);