From fcd776174ca2da2cd1580f712c20692df2e0c041 Mon Sep 17 00:00:00 2001 From: W1CDN Date: Fri, 25 Aug 2023 21:38:17 -0500 Subject: [PATCH] Log with timestamp. --- kiss_and_db.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kiss_and_db.py b/kiss_and_db.py index 4999e99..f463b23 100644 --- a/kiss_and_db.py +++ b/kiss_and_db.py @@ -26,7 +26,8 @@ def main(): # KISS_HOST = os.environ.get("KISS_HOST", "192.168.0.30") # KISS_PORT = os.environ.get("KISS_PORT", "8001") - logging.basicConfig(filename=config['Settings']['log_path'], level=logging.DEBUG) + logging.basicConfig(filename=config['Settings']['log_path'], level=logging.DEBUG, \ + format='%(asctime)s - %(message)s') logging.debug('kiss_and_db.py running') ki = aprs.TCPKISS(host=config['Settings']['kiss_host'], port=int(config['Settings']['kiss_port']))