Stringify response object before logging on failed Twitch token refresh
parent
39098f2346
commit
c808f02aa2
|
@ -32,7 +32,7 @@ async function refreshApiToken(tokens: TokenPair): Promise<boolean> {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
log(LogLevel.ERROR,"Refresh returned failure. Response object:");
|
log(LogLevel.ERROR,"Refresh returned failure. Response object:");
|
||||||
log(LogLevel.ERROR,res);
|
log(LogLevel.ERROR,JSON.stringify(await res.json(),null,2));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue