Skip to content

Commit

Permalink
fix: RotatingFileHandler (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Jul 26, 2023
1 parent 730bfcf commit 17426f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dank_mids/_how_is_this_real.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
LOGS_PATH = 'just-leave-me-here-and-dont-touch-me-plz.log'
ONE_KB = 1024

silencer = RotatingFileHandler(LOGS_PATH, maxBytes=500*ONE_KB, backupCount=0)
silencer = RotatingFileHandler(LOGS_PATH, maxBytes=500*ONE_KB, backupCount=1)

def _the_most_absurd_fix_youve_ever_seen():
"""
Expand Down Expand Up @@ -34,4 +34,4 @@ def enable_logger_but_divert_stream(name, show_every_x=None):
assert logger.handlers == [], logger.handlers
# add the silencer handler to direct the logs to a throwaway file
logger.addHandler(silencer)


0 comments on commit 17426f0

Please sign in to comment.