Cleanup log file on runs

pull/26/head
Luigi311 2022-08-17 21:43:51 -06:00
parent 9f6edfc91a
commit 942ec3533f
1 changed files with 2 additions and 2 deletions

View File

@ -348,8 +348,8 @@ def generate_server_connections():
def main_loop():
logfile = os.getenv("LOGFILE","log.log")
# Delete logfile if it exists
#if os.path.exists(logfile):
# os.remove(logfile)
if os.path.exists(logfile):
os.remove(logfile)
dryrun = str_to_bool(os.getenv("DRYRUN", "False"))
logger(f"Dryrun: {dryrun}", 1)