Commit 19d129d2 authored by Constantin's avatar Constantin
Browse files

Merge branch 'master' of git.hacksaar.de:hacksaar/haxotel

parents 70db79db 61fa76d2
......@@ -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