From 724415ddb199f2c5915c967f7a7d2b58ae14e3af Mon Sep 17 00:00:00 2001 From: Kartik Raj Date: Wed, 28 Feb 2024 18:28:22 +0530 Subject: [PATCH] Log environment collection activity at info level (#22990) --- .../terminals/envCollectionActivation/service.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/client/terminals/envCollectionActivation/service.ts b/src/client/terminals/envCollectionActivation/service.ts index 3ca0b39582ae..447150c0f818 100644 --- a/src/client/terminals/envCollectionActivation/service.ts +++ b/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);