mirror of
https://github.com/unraid/api.git
synced 2026-01-09 10:10:45 -06:00
fix: add process.title
This commit is contained in:
5
index.js
5
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(`<worker> Could not load main field "${mainPath}".`);
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user