Skip to content

Commit b626801

Browse files
committed
remove env var log
1 parent 881009d commit b626801

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/kernels/raw/launcher/kernelEnvVarsService.node.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export class KernelEnvironmentVariablesService {
142142
// Keep a list of the kernelSpec variables that need to be substituted.
143143
const kernelSpecVariablesRequiringSubstitution: Record<string, string> = {};
144144
for (const [key, value] of Object.entries(kernelEnv || {})) {
145-
if (typeof value === 'string' && substituteEnvVars(key, value, process.env) !== value) {
145+
if (typeof value === 'string' && substituteEnvVars(value, process.env) !== value) {
146146
kernelSpecVariablesRequiringSubstitution[key] = value;
147147
delete kernelEnv[key];
148148
}
@@ -193,7 +193,7 @@ export class KernelEnvironmentVariablesService {
193193

194194
// env variables in kernelSpecs can contain variables that need to be substituted
195195
for (const [key, value] of Object.entries(kernelSpecVariablesRequiringSubstitution)) {
196-
mergedVars[key] = substituteEnvVars(key, value, mergedVars);
196+
mergedVars[key] = substituteEnvVars(value, mergedVars);
197197
}
198198

199199
return mergedVars;
@@ -202,7 +202,7 @@ export class KernelEnvironmentVariablesService {
202202

203203
const SUBST_REGEX = /\${([a-zA-Z]\w*)?([^}\w].*)?}/g;
204204

205-
function substituteEnvVars(key: string, value: string, globalVars: EnvironmentVariables): string {
205+
function substituteEnvVars(value: string, globalVars: EnvironmentVariables): string {
206206
if (!value.includes('$')) {
207207
return value;
208208
}
@@ -222,7 +222,6 @@ function substituteEnvVars(key: string, value: string, globalVars: EnvironmentVa
222222
return globalVars[substName] || '';
223223
});
224224
if (!invalid && replacement !== value) {
225-
logger.debug(`${key} value in kernelSpec updated from ${value} to ${replacement}`);
226225
value = replacement;
227226
}
228227

0 commit comments

Comments
 (0)