fix(logging): surface subtitle processing debug/warn logs (#182)

This commit is contained in:
2026-08-03 20:44:39 -07:00
committed by GitHub
parent 5b8848518a
commit bffb1c5982
13 changed files with 208 additions and 6 deletions
@@ -59,6 +59,9 @@ export function createSubtitlePrefetchInitController(
const cues = deps.parseSubtitleCues(content, sourcePath);
if (revision !== initRevision || cues.length === 0) {
if (revision === initRevision) {
deps.logWarn(
`[subtitle-prefetch] parsed 0 cues from ${sourcePath}; prefetch disabled for this source`,
);
deps.onParsedSubtitleCuesChanged?.(null, null);
}
return;