Skip to content
This repository has been archived by the owner on Nov 26, 2023. It is now read-only.

Commit

Permalink
bug, move old logfiles into zip
Browse files Browse the repository at this point in the history
  • Loading branch information
kushalkolar committed May 19, 2021
1 parent 1a19d77 commit b43370a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesmerize/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def move_old_logfiles(logger, log_file_dir):
logfiles.sort()
while len(logfiles) > 5:
logger.info("Moving old logfiles...")
old_logfile = logfiles.pop(-1)
old_logfile = logfiles.pop(0)
zlogfile.write(old_logfile, os.path.basename(old_logfile))
os.remove(old_logfile)
zlogfile.close()
Expand Down

0 comments on commit b43370a

Please sign in to comment.