File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -186,7 +186,10 @@ export class CSIController extends TypedEmitter<Events> {
186186
187187 this . logger = new ObjLogger ( this , { id : this . id } ) ;
188188
189- this . logger . debug ( "Constructor executed" ) ;
189+ this . logger . debug ( "Constructor executed" , arguments ) ;
190+
191+ // eslint-disable-next-line no-console
192+ console . log ( "Constructor executed" , arguments ) ;
190193
191194 this . status = InstanceStatus . INITIALIZING ;
192195
Original file line number Diff line number Diff line change @@ -328,17 +328,17 @@ export class Runner<X extends AppConfig> implements IComponent {
328328 . finally ( ( ) => process . exit ( ) ) ;
329329 }
330330
331- async premain ( ) {
331+ async premain ( ) : Promise < { appConfig : AppConfig , args : any } > {
332+ this . logger . debug ( "premain" ) ;
333+
332334 try {
333335 await this . hostClient . init ( this . instanceId ) ;
334336 } catch ( e ) {
335337 this . logger . error ( "hostClient init error" , e ) ;
336338
337339 await defer ( 2000 ) ;
338340
339- this . premain ( ) . catch ( ( err : any ) => {
340- this . logger . error ( "Premain error" , err ) ;
341- } ) ;
341+ return await this . premain ( ) ;
342342 }
343343
344344 this . redirectOutputs ( ) ;
@@ -358,7 +358,7 @@ export class Runner<X extends AppConfig> implements IComponent {
358358
359359 const { appConfig, args } = await this . waitForHandshakeResponse ( ) ;
360360
361- this . logger . debug ( "Handshake received" ) ;
361+ this . logger . debug ( "Handshake received" , appConfig , args ) ;
362362
363363 return { appConfig, args } ;
364364 }
You can’t perform that action at this time.
0 commit comments