From c808f02aa2a40f5405868f5727c9e05c7cb75663 Mon Sep 17 00:00:00 2001 From: Dessa Simpson Date: Sun, 8 Nov 2020 12:13:34 -0700 Subject: [PATCH] Stringify response object before logging on failed Twitch token refresh --- src/twitch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/twitch.ts b/src/twitch.ts index f0c965a..24e6322 100644 --- a/src/twitch.ts +++ b/src/twitch.ts @@ -32,7 +32,7 @@ async function refreshApiToken(tokens: TokenPair): Promise { return true; } else { log(LogLevel.ERROR,"Refresh returned failure. Response object:"); - log(LogLevel.ERROR,res); + log(LogLevel.ERROR,JSON.stringify(await res.json(),null,2)); return false; } })