Skip to content

Commit

Permalink
Update log.service.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
bwp91 committed Nov 11, 2023
1 parent c42a1af commit 907b619
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui/src/app/core/log.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,12 @@ export class LogService {
this.io.socket.on('stdout', (data: string) => {
console.log(data);
if (this.pluginName) {
console.log(JSON.stringify(data));
const lines = data.split('\n');
let includeNextLine = false;

lines.forEach((line) => {
this.term.write(line);
if (includeNextLine) {
if (line.match(/] \[[a-zA-Z0-9]+] /)) {
includeNextLine = false;
Expand Down

0 comments on commit 907b619

Please sign in to comment.