fix to the log file not existing on first start

This commit is contained in:
2025-08-19 09:58:36 -07:00
parent 0977a3e14d
commit 6b50e7f9f5

View File

@@ -1702,7 +1702,11 @@ if __name__ == "__main__":
else:
log_path = os.path.join(os.getcwd(), "flares.log")
os.remove(log_path)
try:
os.remove(log_path)
except:
pass
sys.stdout = open(log_path, "a", buffering=1)
sys.stderr = sys.stdout
print(f"\n=== App started at {datetime.now()} ===\n")