Commit 61fa76d2 authored by Ralf's avatar Ralf

Fix log spacing

parent a047cdf4
......@@ -20,5 +20,6 @@ def send_async(conn, data):
fire_and_forget(do_send)
def log_file(file, *args, clock=False):
prefix = datetime.now().strftime("%Y-%m-%d %H:%M:%S: ") if clock else ""
print(prefix, *args, file=file, flush=True)
if clock:
print(datetime.now().strftime("%Y-%m-%d %H:%M:%S: "), end="", file=file)
print(*args, file=file, flush=True)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment