From 17426f0eb1b09af94cc857b7e855d9432897559c Mon Sep 17 00:00:00 2001 From: BobTheBuidler <70677534+BobTheBuidler@users.noreply.github.com> Date: Tue, 25 Jul 2023 22:32:32 -0400 Subject: [PATCH] fix: RotatingFileHandler (#76) --- dank_mids/_how_is_this_real.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dank_mids/_how_is_this_real.py b/dank_mids/_how_is_this_real.py index fe2fbc3e..ecba815a 100644 --- a/dank_mids/_how_is_this_real.py +++ b/dank_mids/_how_is_this_real.py @@ -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(): """ @@ -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) - \ No newline at end of file +