Skip to content

Commit 96985e6

Browse files
committed
Reconnect. logs. [wip]
1 parent 7526211 commit 96985e6

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

packages/host/src/lib/csi-controller.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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

packages/runner/src/runner.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)