From 446465a833df003f661e6e7310ca7b3fe5e87298 Mon Sep 17 00:00:00 2001 From: dev Date: Sun, 14 Jun 2026 23:21:04 +0200 Subject: [PATCH] fix(quality-scanner): log under soulsync namespace so progress is visible MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The worker used logging.getLogger(__name__) → "core.discovery.quality_scanner", which the app log view (soulsync.*) doesn't surface — so the scan looked like it did nothing ("API Starting scan" straight to "quality_scan_completed" with no worker output). Switched to get_logger("discovery.quality_scanner") so "Found N tracks", "Profile targets", and the unprobeable-file diagnostics show up. Co-Authored-By: Claude Opus 4.8 --- core/discovery/quality_scanner.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/discovery/quality_scanner.py b/core/discovery/quality_scanner.py index 728fec3e..ebde647c 100644 --- a/core/discovery/quality_scanner.py +++ b/core/discovery/quality_scanner.py @@ -41,7 +41,11 @@ from core.metadata.registry import get_client_for_source, get_primary_source, ge from core.metadata.types import Album from core.wishlist.payloads import ensure_wishlist_track_format -logger = logging.getLogger(__name__) +# Use the project logger namespace ("soulsync.*") so the scanner's progress and +# diagnostics actually surface in the app log — plain getLogger(__name__) lands +# under "core.discovery.quality_scanner", which the app log view doesn't show. +from utils.logging_config import get_logger +logger = get_logger("discovery.quality_scanner") # Per-source typed converter dispatch — same registry pattern as