Merge Library and Status into a unified Games tab
This commit is contained in:
+3
-2
@@ -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}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user