Stringify response object before logging on failed Twitch token refresh

This commit is contained in:
Dessa Simpson 2020-11-08 12:13:34 -07:00
parent 39098f2346
commit c808f02aa2

View file

@ -32,7 +32,7 @@ async function refreshApiToken(tokens: TokenPair): Promise<boolean> {
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;
}
})