diff --git a/src/core/ErrorChannel.mjs b/src/core/ErrorChannel.mjs index d8de3b9..24b521a 100644 --- a/src/core/ErrorChannel.mjs +++ b/src/core/ErrorChannel.mjs @@ -292,6 +292,8 @@ function _forward(level, tag, args) { if (tag.includes("[LastFm]") && (/not found|error 6:/i.test(body) || /Track not found/i.test(body))) return; /* Suppress transient socket drops from routine status channel updates */ if (tag.includes("[StatusChannel]") && (/other side closed/i.test(body) || /fetch failed/i.test(body))) return; + /* Suppress benign search fallback and candidate exploration warnings */ + if (tag.includes("[Player]") && (/Free text search candidate/i.test(tag) || /search candidate.*failed/i.test(tag))) return; const now = Date.now(); const key = `${level}|${tag}|${(body || tag).slice(0, 200)}`; const last = _forwardDedup.get(key); diff --git a/src/music/player/SearchMixin.mjs b/src/music/player/SearchMixin.mjs index 1ce6432..8bb81fe 100644 --- a/src/music/player/SearchMixin.mjs +++ b/src/music/player/SearchMixin.mjs @@ -382,7 +382,9 @@ const SearchMixin = { return res; } } catch (err) { - logger.warn(`[Player] Free text search candidate "${candidate}" failed (${source}):`, err?.message); + /* Search candidate exploration is a normal fallback mechanism; log as player diagnostic */ + const errMsg = err?.message || err?.error || (typeof err === "string" ? err : "") || "unknown error"; + logger.player(`[Player] Free text search candidate "${candidate}" failed (${source}):`, errMsg); } } return null; @@ -650,7 +652,7 @@ const SearchMixin = { try { const source = this._getSource(provider); const result = await this._searchFreeText(query, source); - return result.tracks || []; + return result?.tracks || []; } catch (e) { logger.error(`[Player] lavalink search error:`, e?.message); return [];