Skip to content

Commit

Permalink
Merge pull request #1 from felixfontein/cleanup
Browse files Browse the repository at this point in the history
Cleanup
  • Loading branch information
felixfontein authored Apr 9, 2022
2 parents 5ea40ab + a7566f4 commit 16af933
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 38 deletions.
4 changes: 4 additions & 0 deletions changelogs/fragments/1-cleanup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
minor_changes:
- "Remove unused code (https://github.com/ansible-community/antsibull-core/pull/1)."
removed_features:
- "Remove package ``antsibull_core.utils.transformations`` (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')
23 changes: 0 additions & 23 deletions src/antsibull_core/utils/transformations.py

This file was deleted.

0 comments on commit 16af933

Please sign in to comment.