Skip to content

Commit

Permalink
add logging disabling
Browse files Browse the repository at this point in the history
  • Loading branch information
adamltyson committed Apr 2, 2020
1 parent 7e71bfc commit 55fa259
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions fancylog/fancylog.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,3 +276,12 @@ def setup_logging(
else:
logging.info("Starting logging")
logging.info("Not logging multiple processes")


def disable_logging():
"""
Prevents any more logging. Saves remembering that logging.disable() with
no argument doesn't work.
:return:
"""
logging.disable(2 ** 63 - 1)

0 comments on commit 55fa259

Please sign in to comment.