From 408aa78ed53f0299d35e758cd422fd0b9dfe93a3 Mon Sep 17 00:00:00 2001 From: Deluan Date: Sat, 7 Feb 2026 21:36:39 -0500 Subject: [PATCH] fix(scanner): log warning when metadata extraction fails Added a warning log when the gotaglib extractor fails to read metadata from a file. Previously, extraction errors were silently skipped, making it difficult to diagnose issues with unreadable files during scanning. Ref: https://github.com/navidrome/navidrome/issues/4604#issuecomment-3865690165 Signed-off-by: Deluan --- adapters/gotaglib/gotaglib.go | 1 + 1 file changed, 1 insertion(+) diff --git a/adapters/gotaglib/gotaglib.go b/adapters/gotaglib/gotaglib.go index 7c98aa24..1d5e45a7 100644 --- a/adapters/gotaglib/gotaglib.go +++ b/adapters/gotaglib/gotaglib.go @@ -49,6 +49,7 @@ func (e extractor) Version() string { func (e extractor) extractMetadata(filePath string) (*metadata.Info, error) { f, close, err := e.openFile(filePath) if err != nil { + log.Warn("gotaglib: Error reading metadata from file. Skipping", "filePath", filePath, err) return nil, err } defer close()