lklk
This commit is contained in:
@@ -10,7 +10,7 @@ from typing import Any, Dict, List, Optional
|
||||
from contextlib import contextmanager
|
||||
import time
|
||||
import datetime
|
||||
from SYS.logger import log
|
||||
from SYS.logger import debug, log
|
||||
|
||||
# DB execute retry settings (for transient 'database is locked' errors)
|
||||
_DB_EXEC_RETRY_MAX = 5
|
||||
@@ -61,9 +61,9 @@ class Database:
|
||||
self.db_path = DB_PATH
|
||||
db_existed = self.db_path.exists()
|
||||
if db_existed:
|
||||
log(f"Opening existing medios.db at {self.db_path}")
|
||||
debug(f"Opening existing medios.db at {self.db_path}")
|
||||
else:
|
||||
log(f"Creating medios.db at {self.db_path}")
|
||||
debug(f"Creating medios.db at {self.db_path}")
|
||||
|
||||
self.conn = sqlite3.connect(
|
||||
str(self.db_path),
|
||||
|
||||
Reference in New Issue
Block a user