From 201c8f9ec985df8da9d2891784c9eb54c3c1d6eb Mon Sep 17 00:00:00 2001 From: Donald Zou Date: Sun, 4 Aug 2024 20:17:29 -0400 Subject: [PATCH] Update dashboard.py --- src/dashboard.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dashboard.py b/src/dashboard.py index a45d52b..99ae359 100644 --- a/src/dashboard.py +++ b/src/dashboard.py @@ -1840,7 +1840,7 @@ def index(): def backGroundThread(): with app.app_context(): - print(f"[WGDashboard][{datetime.now().strftime('%Y-%m-%d %H:%M:%S')}] Background Thread #1 Started") + print(f"[WGDashboard] Background Thread #1 Started", flush=True) time.sleep(10) while True: for c in WireguardConfigurations.values(): @@ -1850,13 +1850,13 @@ def backGroundThread(): c.getPeersLatestHandshake() c.getPeersEndpoint() except Exception as e: - print(f"[WGDashboard][{datetime.now().strftime('%Y-%m-%d %H:%M:%S')}] Background Thread #1 Error: {str(e)}") + print(f"[WGDashboard] Background Thread #1 Error: {str(e)}", flush=True) time.sleep(10) def peerJobScheduleBackgroundThread(): with app.app_context(): - print(f"[WGDashboard][{datetime.now().strftime('%Y-%m-%d %H:%M:%S')}] Background Thread #2 Started") + print(f"[WGDashboard] Background Thread #2 Started", flush=True) time.sleep(10) while True: AllPeerJobs.runJob()