diff --git a/lib/core/processes/processLauncher.js b/lib/core/processes/processLauncher.js index 6616e50b..acdceea0 100644 --- a/lib/core/processes/processLauncher.js +++ b/lib/core/processes/processLauncher.js @@ -100,16 +100,16 @@ class ProcessLauncher { if(typeof msg.message === 'string') { processedMessages = [msg.message]; } else { - msg.message.forEach((message) => { + msg.message.forEach(message => { let lines = message.split("\n"); - lines.forEach((line) => { processedMessages.push(line); }); + lines.forEach(line => processedMessages.push(line)); }); } const timestamp = new Date().getTime(); processedMessages.forEach((message) => { - this.events.emit('process-log-' + this.name, msg.type, message, this.name, timestamp); + this.events.emit(`process-log-${this.name}`, msg.type, message, this.name, timestamp); this.logs.push({ msg: message, msg_clear: message.stripColors,