From 2d9643c946382de3b0318db0cb4013f03eb47d47 Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Mon, 27 Dec 2021 03:40:38 +0100 Subject: [PATCH] String format fix --- uplink/uplink.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uplink/uplink.py b/uplink/uplink.py index efdaaad..618744f 100644 --- a/uplink/uplink.py +++ b/uplink/uplink.py @@ -54,7 +54,7 @@ class Uplink(Daemon): timestamp = calendar.timegm(time.gmtime()) local_time = time.localtime(timestamp) - d = time.strftime("%Y-%m-%d ", local_time) + d = time.strftime("%Y-%m-%d", local_time) t = time.strftime("%H:%M:%S", local_time) try: @@ -82,7 +82,7 @@ class Uplink(Daemon): status = "DOWN" # TODO: Replace all lines like this with generic Python logging - print(str("[" + str(d) + str(t) + "] " +config["uplinks"][inc]["provider"] + " " + status)) + print(str("[" + str(d) + " " + str(t) + "] " +config["uplinks"][inc]["provider"] + " " + status)) # TODO: Fix to long lines and make the SQL statement more readable sql = 'INSERT INTO log (timestamp, date, time, uptime, internal_ip, external_ip, external_ipv6, is_linked, ' \