From 3694d0bb183b4b4b2eb310985fe44cbf0d7d42ae Mon Sep 17 00:00:00 2001 From: Alexis Tyler Date: Fri, 7 Feb 2020 13:22:27 +1030 Subject: [PATCH] fix: add process.title --- index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 5d76e6a65..fc7ce2730 100644 --- a/index.js +++ b/index.js @@ -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(` Could not load main field "${mainPath}".`); process.exit(1); } -} \ No newline at end of file +}