mirror of
https://github.com/agresdominik/predictify.git
synced 2026-04-21 09:51:56 +00:00
added a function witch sets the console handler to DEBUG level. this can be used for verbose logging
This commit is contained in:
@@ -107,9 +107,10 @@ class Database:
|
||||
log.error(f"Error while reading all rows from table {table.value}: {e}")
|
||||
return []
|
||||
|
||||
def close(self):
|
||||
def close(self, message: str):
|
||||
"""Close the database connection"""
|
||||
self.conn.close()
|
||||
log.info(f"Database connection closed from file: {message}")
|
||||
|
||||
def get_total_overview(self) -> list:
|
||||
"""Retrieve a total overview of all recently played songs with full details"""
|
||||
|
||||
Reference in New Issue
Block a user