Address feedback

This commit is contained in:
Andre Medeiros 2018-10-03 16:35:13 -04:00 committed by Pascal Precht
parent c8d357e601
commit 31476cf2b8
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 3 additions and 3 deletions

View File

@ -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,