From 25bffd9b6129bcdc8098617d3dccf176528a7918 Mon Sep 17 00:00:00 2001 From: W1CDN Date: Wed, 13 Dec 2023 10:40:32 -0600 Subject: [PATCH] Log errors in more detail. --- kiss_and_db.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kiss_and_db.py b/kiss_and_db.py index e9d7af2..9d74bfa 100644 --- a/kiss_and_db.py +++ b/kiss_and_db.py @@ -122,12 +122,12 @@ def main(): # "5 minutes" also works #conn.execute("DELETE FROM frames WHERE created < DATETIME('now', '"+config['Settings']['keep_time']+"')") #conn.commit() - except: + except Exception as error: #print("Error with SQLite!") - logging.error("Error with SQLite!") + logging.error("Error with SQLite!", exc_info = error) except Exception as error: #print("Frame could not be parsed.") - logging.error("Frame could not be parsed:", error) + logging.error("Frame could not be parsed:", exc_info = error) conn.close()