Skip to content

Commit

Permalink
Remove debugging code
Browse files Browse the repository at this point in the history
  • Loading branch information
patuwwy committed Feb 21, 2024
1 parent 2a73c90 commit d7707d3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/runner/src/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ export class Runner<X extends AppConfig> implements IComponent {

if (timeout) {
this.monitoringMessageReplyTimeout = setTimeout(async () => {
this.logger.warn("Monitoring Reply Timeout. Connected");
this.logger.warn("Monitoring Reply Timeout");

await this.handleDisconnect();
}, timeout);
Expand All @@ -324,7 +324,7 @@ export class Runner<X extends AppConfig> implements IComponent {

try {
await this.hostClient.disconnect(!this.connected);
await defer(5000);
await defer(10000);
} catch (e) {
this.logger.error("Disconnect failed");
}
Expand Down Expand Up @@ -405,18 +405,18 @@ export class Runner<X extends AppConfig> implements IComponent {

try {
this.logger.debug("connecting...");
await promiseTimeout(this.hostClient.init(this.instanceId), 5000);
await promiseTimeout(this.hostClient.init(this.instanceId), 10000);
this.logger.debug("connected");
this.connected = true;

this.hostClient.inputStream.pipe(this.logFile!);
//this.hostClient.inputStream.pipe(this.logFile!);

await this.handleMonitoringRequest({ monitoringRate: 1 });
} catch (e) {
this.connected = false;
this.logger.warn("Can't connect to Host", e);

await defer(5000);
await defer(10000);

return await this.premain();
}
Expand Down

0 comments on commit d7707d3

Please sign in to comment.