From e55dba0b6565595c6554bc68c0000e70849825d0 Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Fri, 26 Apr 2024 15:18:53 +1000 Subject: [PATCH] Add more debug points to YTModule --- src/modules/YTModule.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/YTModule.ts b/src/modules/YTModule.ts index 2b9b542..5e500cb 100644 --- a/src/modules/YTModule.ts +++ b/src/modules/YTModule.ts @@ -30,7 +30,8 @@ export default async(client:TClient)=>{ }).then(async resp=>Data = await resp.body.json()); YTChannelName = Data.items[0].snippet.channelTitle; } catch (err) { - Logger.console('log', 'YTModule', `Failed to get video data for "${YTChannelID}" from YouTube API: ${err}`); + Logger.console('error', 'YTModule', `Failed to get video data for "${YTChannelID}" from YouTube API: ${err}`); + Logger.debug('YTModule', `Debug data: ${Data}`); } if (!Data) return;