Skip to content

Commit 6579bfe

Browse files
author
ionut.stan
committed
console.log
1 parent 982efde commit 6579bfe

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/NodeClusterBase/MasterEndpoint.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ class MasterEndpoint extends JSONRPC.EndpointBase
2424
{
2525
constructor(classReverseCallsClient)
2626
{
27+
console.log(`Fired up ${cluster.isWorker ? "worker" : "master"} with PID ${process.pid}`);
28+
2729
super(
2830
/*strName*/ "ClusterIPC",
2931
/*strPath*/ "/api-cluster/IPC",

src/NodeClusterBase/WorkerEndpoint.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ class WorkerEndpoint extends JSONRPC.EndpointBase
2222
{
2323
constructor(classReverseCallsClient)
2424
{
25+
console.log(`Fired up ${cluster.isWorker ? "worker" : "master"} with PID ${process.pid}`);
26+
2527
super(
2628
/*strName*/ "ClusterIPC",
2729
/*strPath*/ "/api-cluster/IPC",

0 commit comments

Comments
 (0)