File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -172,6 +172,7 @@ export class ChildProcess extends Process {
172
172
* Initiate the handshake and wait for a response from the parent.
173
173
*/
174
174
public async handshake ( ) : Promise < DefaultedArgs > {
175
+ this . logger . debug ( "initiating handshake" )
175
176
this . send ( { type : "handshake" } )
176
177
const message = await onMessage < ParentMessage , ParentHandshakeMessage > (
177
178
process ,
@@ -280,6 +281,10 @@ export class ParentProcess extends Process {
280
281
}
281
282
282
283
public start ( args : DefaultedArgs ) : Promise < void > {
284
+ // Our logger was created before we parsed CLI arguments so update the level
285
+ // in case it has changed.
286
+ this . logger . level = logger . level
287
+
283
288
// Store for relaunches.
284
289
this . args = args
285
290
if ( ! this . started ) {
@@ -306,7 +311,7 @@ export class ParentProcess extends Process {
306
311
} )
307
312
}
308
313
309
- this . logger . debug ( `spawned inner process ${ child . pid } ` )
314
+ this . logger . debug ( `spawned child process ${ child . pid } ` )
310
315
311
316
await this . handshake ( child )
312
317
You can’t perform that action at this time.
0 commit comments