Merge Library and Status into a unified Games tab

This commit is contained in:
2026-10-13 17:16:23 +02:00
parent 5d917dd4b9
commit 1643da4bb6
26 changed files with 1777 additions and 1786 deletions
+3 -2
View File
@@ -7,7 +7,7 @@ from PySide6.QtWidgets import QApplication
from src.api import GogApi
from src.auth import AuthManager
from src.config import AppConfig, DEFAULT_CONFIG_DIR
from src.config import DEFAULT_CONFIG_DIR, AppConfig
from src.constants import APP_TITLE
from src.ui.main_window import MainWindow
@@ -15,6 +15,8 @@ from src.ui.main_window import MainWindow
def _setup_logging(config_dir) -> None:
"""Log DEBUG to stderr and to a rotating file for diagnostics."""
log_file = config_dir / "gogupdater.log"
# loguru is already thread-safe (per-sink lock); avoid enqueue=True, which
# spins up a multiprocessing queue and leaks semaphores on a hard crash.
logger.add(
log_file,
level="DEBUG",
@@ -22,7 +24,6 @@ def _setup_logging(config_dir) -> None:
retention=3,
backtrace=True,
diagnose=True,
enqueue=True, # thread-safe logging from worker threads
)
logger.info(f"Logging to {log_file}")