Skip to content

Commit

Permalink
actually use the handler we create
Browse files Browse the repository at this point in the history
  • Loading branch information
ShineyDev committed Feb 22, 2024
1 parent 1dbbef1 commit 90eee87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pretty/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ def _main() -> None:
# we want to write to the *current* stderr stream; and
handler = utility.CurrentStandardErrorStreamHandler()
handler.setFormatter(formatter)
logger.addHandler(handler)
# we want to see WARNING, ERROR, and CRITICAL messages.
logger.setLevel(level)
# like much else in pretty, this behavior is customizable;
Expand Down

0 comments on commit 90eee87

Please sign in to comment.