Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bwp91 committed Nov 12, 2023
1 parent a40c883 commit 3dde65e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions ui/src/app/core/log.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ export class LogService {
let includeNextLine = false;

lines.forEach((line) => {
console.log('line', line);
if (includeNextLine) {
if (line.match(/36m\[.*?]/)) {
includeNextLine = false;
Expand All @@ -96,7 +95,6 @@ export class LogService {
}

if (line.includes(`[36m[${this.pluginName}]`)) {
console.log('match', line);
this.term.write(line + '\r');
includeNextLine = true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class PluginLogModalComponent implements OnInit, OnDestroy {

getPluginLog() {
// Get the plugin name as configured in the config file
this.$api.get(`/config-editor/plugin/${this.plugin.name}`).subscribe(
this.$api.get(`/config-editor/plugin/${encodeURIComponent(this.plugin.name)}`).subscribe(
(result) => {
const logAlias = this.plugin.name === 'homebridge-config-ui-x' ? 'Homebridge UI' : result[0].name;
this.$log.startTerminal(this.termTarget, {}, this.resizeEvent, logAlias);
Expand Down

0 comments on commit 3dde65e

Please sign in to comment.