Skip to content

Commit

Permalink
Merge pull request #1200 from clwluvw/healthcheck-logging
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-mangin committed Mar 16, 2024
2 parents 8b540b4 + 49d05e6 commit 3f18086
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/exabgp/application/healthcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,7 @@ def syslog_address():
sh.setFormatter(logging.Formatter("{0}[{1}]: %(message)s".format(healthcheck_name, os.getpid())))
logger.addHandler(sh)
# To console
toconsole = hasattr(sys.stderr, "isatty") and sys.stderr.isatty() and not silent # pylint: disable=E1101
if toconsole:
if not silent:
ch = logging.StreamHandler()
ch.setFormatter(logging.Formatter("%(levelname)s[%(name)s] %(message)s"))
logger.addHandler(ch)
Expand Down

0 comments on commit 3f18086

Please sign in to comment.