File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import { constants } from "fs";
20
20
import { access , readFile , rm } from "fs/promises" ;
21
21
import path from "path" ;
22
22
import { getRunnerEnvVariables } from "./get-runner-env" ;
23
+ import { development } from "@scramjet/sth-config" ;
23
24
24
25
const isTSNode = ! ! ( process as any ) [ Symbol . for ( "ts-node.register.instance" ) ] ;
25
26
const gotPython = "\n _ \n __ _____ _ __ ___ ___| |\n \\ \\ /\\ / / _ \\| '_ \\/ __|_ / |\n \\ V V / (_) | | | \\__ \\/ /|_|\n \\_/\\_/ \\___/|_| |_|___/___(_) 🐍\n" ;
@@ -152,6 +153,9 @@ class ProcessInstanceAdapter implements
152
153
config . sequenceDir ,
153
154
config . entrypointPath
154
155
) ;
156
+
157
+ const extraEnvs = development ( ) ? process . env : { } ;
158
+
155
159
const env = getRunnerEnvVariables ( {
156
160
sequencePath,
157
161
instancesServerHost : "127.0.0.1" ,
@@ -162,7 +166,8 @@ class ProcessInstanceAdapter implements
162
166
payload
163
167
} , {
164
168
PYTHONPATH : this . getPythonpath ( config . sequenceDir ) ,
165
- ...this . sthConfig . runnerEnvs
169
+ ...this . sthConfig . runnerEnvs ,
170
+ ...extraEnvs
166
171
} ) ;
167
172
168
173
this . logger . debug ( "Spawning Runner process with command" , runnerCommand ) ;
Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ export class Host implements IComponent {
201
201
this . logger = new ObjLogger (
202
202
this ,
203
203
{ } ,
204
- ObjLogger . levels . find ( ( l : LogLevel ) => l . toLowerCase ( ) === sthConfig . logLevel ) ||
204
+ ObjLogger . levels . find ( ( l : LogLevel ) => l . toLowerCase ( ) === sthConfig . logLevel . toLowerCase ( ) ) ||
205
205
ObjLogger . levels [ ObjLogger . levels . length - 1 ]
206
206
) ;
207
207
You can’t perform that action at this time.
0 commit comments