mirror of
https://amiok.net/gitea/W1CDN/aprs_tool.git
synced 2025-05-25 14:00:21 +00:00
Log errors in more detail.
This commit is contained in:
parent
1894de5d86
commit
25bffd9b61
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user