mirror of https://github.com/embarklabs/embark.git
Address feedback
This commit is contained in:
parent
c8d357e601
commit
31476cf2b8
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue