From e8015d52fff54545c5b9cda6714aba35a80852de Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Fri, 2 May 2025 19:43:07 -0400 Subject: [PATCH] Log unknown nodes better --- .../src/components/Services/Innertube/NodesParser.bs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/playlet-lib/src/components/Services/Innertube/NodesParser.bs b/playlet-lib/src/components/Services/Innertube/NodesParser.bs index e94bc5cd..17026a94 100644 --- a/playlet-lib/src/components/Services/Innertube/NodesParser.bs +++ b/playlet-lib/src/components/Services/Innertube/NodesParser.bs @@ -25,7 +25,7 @@ namespace Innertube for each key in nodeData directive = directives[key] if directive = invalid - LogWarn("Unknown node", key) + LogWarn("Unknown node", key, `\n`, FormatJson(nodeData[key])) #if THROW_ON_UNKNOWN_NODES #if DEBUG throw "Unknown node: " + key @@ -684,7 +684,7 @@ namespace Innertube return LockupViewModelTypeAlbum(nodeData, context) end if - LogWarn("Unknown content type:", contentType, `\n`, nodeData) + LogWarn("Unknown content type:", contentType, `\n`, FormatJson(nodeData)) #if THROW_ON_UNKNOWN_NODES #if DEBUG throw "Unknown content type: " + contentType @@ -874,7 +874,7 @@ namespace Innertube return TileRendererTypePlaylist(nodeData, context) end if - LogWarn("Unknown content type:", contentType, `\n`, nodeData) + LogWarn("Unknown content type:", contentType, `\n`, FormatJson(nodeData)) #if THROW_ON_UNKNOWN_NODES #if DEBUG throw "Unknown content type: " + contentType