Skip to content

Commit

Permalink
fix: Less verbose logging for filelock library
Browse files Browse the repository at this point in the history
  • Loading branch information
codablock committed Oct 8, 2021
1 parent 7e941d8 commit 89b5f78
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kluctl/cli/main_cli_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ def setup_logging(verbose):
logging.getLogger('urllib3.connectionpool').setLevel(logging.ERROR)
logging.getLogger('filelock').setLevel(logging.WARN)

# Import filelock to force the bad setLevel call performed internally so that we can then later override the level
# with what we actually want. TODO remove this when https://github.com/tox-dev/py-filelock/issues/104 is resolved.
import filelock
logging.getLogger("filelock").setLevel(logging.WARN)


def check_new_version():
if _version.__version__ == "0.0.0":
# local dev version
Expand Down

0 comments on commit 89b5f78

Please sign in to comment.