Skip to content

Commit bfc0078

Browse files
committed
The filter has to be set on the handler
1 parent 9e2335a commit bfc0078

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bumpchanges/logging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ def setup_logging():
4242
handler = logging.StreamHandler()
4343
handler.setLevel(logging.DEBUG)
4444
handler.setFormatter(logging.Formatter("%(ghaprefix)s%(message)s"))
45+
handler.addFilter(GHAFilter())
4546

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

0 commit comments

Comments
 (0)