added a function witch sets the console handler to DEBUG level. this can be used for verbose logging

This commit is contained in:
agres
2025-03-24 10:09:13 +01:00
parent 10a490bf9c
commit aae9115b23
+2 -1
View File
@@ -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"""