mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Merge pull request #1059 from skontrolle/logrm
delete old log after rotation
This commit is contained in:
@ -307,3 +307,5 @@ def do_rotate(filename, stats, cfg):
|
||||
with open(log_filename, 'rb') as src:
|
||||
with gzip.open(archive_filename, 'wb') as dst:
|
||||
dst.writelines(src)
|
||||
|
||||
os.remove(log_filename)
|
||||
|
Reference in New Issue
Block a user