We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c9b285 commit b7f71e7Copy full SHA for b7f71e7
src-node/index.js
@@ -158,6 +158,7 @@ function resetOrphanExitTimer() {
158
// in debug mode, we wait for more minutes to not exit node if phcode doesn't send heartbeats on break point debug
159
clearTimeout(orphanExitTimer);
160
orphanExitTimer = setTimeout(()=>{
161
+ console.error(`Node did not receive heartbeat for ${timeout/1000}S, existing as orphan node process detected.`);
162
process.exit(1);
163
}, timeout);
164
}
@@ -170,6 +171,7 @@ function processCommand(line) {
170
171
lmdb.dumpDBToFileAndCloseDB()
172
.catch(console.error)
173
.finally(()=>{
174
+ console.log("Node terminated by phcode.");
175
process.exit(0);
176
});
177
return;
0 commit comments