fix: add process.title

This commit is contained in:
Alexis Tyler
2020-02-07 13:22:27 +10:30
parent f951f7cacd
commit 3694d0bb18

View File

@@ -17,6 +17,9 @@ let currentWorker;
// Master
if (cluster.isMaster) {
// Set process name so we can easily find it
process.title = 'gql-supervisor';
// Show real stack trace in development
if (process.env.NODE_ENV === 'development') {
try {
@@ -83,4 +86,4 @@ if (cluster.isWorker) {
log.error(`<worker> Could not load main field "${mainPath}".`);
process.exit(1);
}
}
}