diff --git a/src/node/index.ts b/src/node/index.ts index ab113d1..1c1bb4a 100644 --- a/src/node/index.ts +++ b/src/node/index.ts @@ -338,6 +338,10 @@ class Node { this.nodeRunning = true; this.pingTimeout = setTimeout(this.ping.bind(this), PING_INTERVAL); } catch (error) { + this.logger.error({ + errorType: ErrorsEnum.LAUNCH_ERROR, + error: new Error('Trying to launch point node, but Ping is not working. Error : ' + error) + }); this.pingErrorCount += 1; const relaunching = this.pingErrorCount > PING_ERROR_THRESHOLD; const launchFailed = this.pointLaunchCount >= MAX_RETRY_COUNT; @@ -521,12 +525,12 @@ class Node { } } - /** - * Returns the running instances of Point Engine - */ async _getRunningProcess(): Promise { - return (await find('name', 'point', true)).filter(p => - // eslint-disable-next-line @typescript-eslint/no-explicit-any + // eslint-disable-next-line no-console + const procList = await find('name', 'point', true); + this.logger.info(`procList ${JSON.stringify(procList)}`); + return procList.filter(p => + // eslint-disable-next-line @typescript-eslint/no-explicit-any (p as any).bin.match(/bin.+?point(.exe)?$/) ); }