Skip to content

Commit

Permalink
perf: another twitch logger
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiTenno committed Oct 8, 2022
1 parent 9ce223d commit e4b6e89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/notifications/twitch/TwitchClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,15 +172,15 @@ export default class TwitchClient {
this.#accessToken = token;
return true;
}
logger.error(`error retrieving refresh token: ${res.error.message}`, 'Twitch');
logger.silly(`error retrieving refresh token: ${res.error.message}`, 'Twitch');
logger.warn(url);

if (res.error.message === 'Invalid refresh token') {
this.#refreshToken = undefined;
return this.hydrateToken();
}
} catch (e) {
logger.error(e, 'Twitch');
logger.silly(e, 'Twitch');
}

return false;
Expand Down

0 comments on commit e4b6e89

Please sign in to comment.