Skip to content

Commit

Permalink
Remove dead code.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Apr 9, 2022
1 parent 5ea40ab commit 9863a2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/1-cleanup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- "Remove unused code (https://github.com/ansible-community/antsibull-core/pull/1)."
16 changes: 1 addition & 15 deletions src/antsibull_core/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,20 +219,6 @@ def run(args):
mlog.debug('logging loaded')


def plugin_filter():
"""
Filter out messages which come from plugin error output.
:arg msg: A :twiggy:obj:`twiggy.message.Message` object which would be filtered
"""
def wrapped(msg):
return (
msg.fields['func'] == 'write_plugin_rst' and
msg.fields['mod'] == 'antsibull.write_docs'
)
return wrapped


def initialize_app_logging():
"""
Change log settings to make sense for an application.
Expand All @@ -251,4 +237,4 @@ def initialize_app_logging():
twiggy.quick_setup(min_level=_level)


__all__ = ('log', 'initialize_app_logging', 'plugin_filter')
__all__ = ('log', 'initialize_app_logging')

0 comments on commit 9863a2e

Please sign in to comment.