From 31476cf2b8c6ab67c052ad6bb2a560159501f844 Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Wed, 3 Oct 2018 16:35:13 -0400 Subject: [PATCH] Address feedback --- lib/core/processes/processLauncher.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/core/processes/processLauncher.js b/lib/core/processes/processLauncher.js index 6616e50b0..acdceea0b 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,