Skip to content

Commit

Permalink
feat: Emit an event on syslog startup
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach committed Jul 15, 2024
1 parent 2c8c3c3 commit 0d62de4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/commands/log.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ export default {
try {
await this.logs.syslog.startCapture();
didStartSyslog = true;
this.eventEmitter.emit('syslogStarted', this.logs.syslog);
} catch (err) {
log.debug(err.stack);
log.warn(`Continuing without capturing device logs: ${err.message}`);
Expand Down

0 comments on commit 0d62de4

Please sign in to comment.