add openai model to config, rework logging to use appdirs logging dir

This commit is contained in:
2025-06-03 15:28:14 +02:00
parent 9684229fc2
commit 3fbb8bbd52
22 changed files with 101 additions and 84 deletions

View File

@@ -6,11 +6,11 @@ from src.backend.database import Database
import loguru
import sys
from src import LOG_DIR
log = loguru.logger
log.remove()
log.add(sys.stdout, level="INFO")
log.add("logs/application.log", rotation="1 MB", retention="10 days")
log.add(f"{LOG_DIR}/application.log", rotation="1 MB", retention="10 days")
db = Database()