Skip to content

Commit

Permalink
syslog: Fix double BadReturnValueError exception
Browse files Browse the repository at this point in the history
  • Loading branch information
netanelc305 committed Jul 11, 2023
1 parent 7464618 commit 58920b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rpcclient/rpcclient/darwin/syslog.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ def set_harlogger_for_all(self, value: bool, expression: str = None) -> None:
continue
try:
self._set_harlogger_for_process(value, p)
logger.info(f'{"Enabled" if value else "Disabled"} for {p.name}')
logger.info(f'{"Enabled" if value else "Disabled"} for {p.basename}')
except BadReturnValueError:
logger.error(f'Failed To enabled for {p.name}')
logger.error(f'Failed To enabled for {p}')
self.set_har_capture_global(True)

def set_unredacted_logs(self, enable: bool = True):
Expand Down

0 comments on commit 58920b3

Please sign in to comment.