Skip to content

Commit

Permalink
The filter has to be set on the handler
Browse files Browse the repository at this point in the history
  • Loading branch information
nwiltsie committed Jul 30, 2024
1 parent 9e2335a commit bfc0078
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bumpchanges/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ def setup_logging():
handler = logging.StreamHandler()
handler.setLevel(logging.DEBUG)
handler.setFormatter(logging.Formatter("%(ghaprefix)s%(message)s"))
handler.addFilter(GHAFilter())

# Set these handlers on the root logger of this module
root_logger = logging.getLogger(__name__.rpartition('.')[0])
root_logger.addHandler(handler)
root_logger.setLevel(logging.DEBUG)
root_logger.addFilter(GHAFilter())

0 comments on commit bfc0078

Please sign in to comment.