From 2eafd9517dc3606a9e3496053f1ba688d26c59f3 Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Mon, 27 Dec 2021 03:38:54 +0100 Subject: [PATCH] CLI output date and time added --- uplink/uplink.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uplink/uplink.py b/uplink/uplink.py index 7b626d8..efdaaad 100644 --- a/uplink/uplink.py +++ b/uplink/uplink.py @@ -82,7 +82,7 @@ class Uplink(Daemon): status = "DOWN" # TODO: Replace all lines like this with generic Python logging - print(str(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, ' \