Use process name if it is provided
This commit is contained in:
parent
3cd5f60dd4
commit
9044560093
|
@ -15,7 +15,7 @@ class ProcessLauncher {
|
||||||
* @return {ProcessLauncher} The ProcessLauncher instance
|
* @return {ProcessLauncher} The ProcessLauncher instance
|
||||||
*/
|
*/
|
||||||
constructor(options) {
|
constructor(options) {
|
||||||
this.name = path.basename(options.modulePath);
|
this.name = options.name || path.basename(options.modulePath);
|
||||||
|
|
||||||
if (this._isDebug()) {
|
if (this._isDebug()) {
|
||||||
const childOptions = {stdio: 'pipe', execArgv: ['--inspect-brk=' + (60000 + processCount)]};
|
const childOptions = {stdio: 'pipe', execArgv: ['--inspect-brk=' + (60000 + processCount)]};
|
||||||
|
|
Loading…
Reference in New Issue