Address feedback
This commit is contained in:
parent
c8d357e601
commit
31476cf2b8
|
@ -100,16 +100,16 @@ class ProcessLauncher {
|
||||||
if(typeof msg.message === 'string') {
|
if(typeof msg.message === 'string') {
|
||||||
processedMessages = [msg.message];
|
processedMessages = [msg.message];
|
||||||
} else {
|
} else {
|
||||||
msg.message.forEach((message) => {
|
msg.message.forEach(message => {
|
||||||
let lines = message.split("\n");
|
let lines = message.split("\n");
|
||||||
lines.forEach((line) => { processedMessages.push(line); });
|
lines.forEach(line => processedMessages.push(line));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const timestamp = new Date().getTime();
|
const timestamp = new Date().getTime();
|
||||||
|
|
||||||
processedMessages.forEach((message) => {
|
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({
|
this.logs.push({
|
||||||
msg: message,
|
msg: message,
|
||||||
msg_clear: message.stripColors,
|
msg_clear: message.stripColors,
|
||||||
|
|
Loading…
Reference in New Issue