From a6ecd9a1298fffc5dc6827ada51f5e5e0bab241b Mon Sep 17 00:00:00 2001 From: Firepup Sixfifty Date: Wed, 31 Jul 2024 20:15:39 +0000 Subject: [PATCH] Flush logs, so they actually work --- logs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/logs.py b/logs.py index 1b94441..3005572 100644 --- a/logs.py +++ b/logs.py @@ -30,6 +30,7 @@ def log( print( f"[{level}]{'['+origin+']' if origin else ''}[{time}] {message}", file=stream, + flush=True, ) else: for line in message.split("\n"): @@ -39,5 +40,6 @@ def log( print( f"[{level}]{'['+origin+']' if origin else ''}[{time}] {line}", file=stream, + flush=True, ) return (log[5:] + "\r\n").encode("utf8")