Stringify response object before logging on failed Twitch token refresh

master
Dessa Simpson 2020-11-08 12:13:34 -07:00
parent 39098f2346
commit c808f02aa2
1 changed files with 1 additions and 1 deletions

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;
}
})