Skip to content

Commit

Permalink
- Remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ParticleG committed Aug 7, 2024
1 parent 540a833 commit 3ad257e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions plugins/PlayerManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ string PlayerManager::oauth(

int64_t PlayerManager::getPlayerIdByAccessToken(const string& accessToken) {
try {
LOG_DEBUG << "accessId: " << get(data::join({"auth", "access-id", accessToken}, ':'));
return stoll(get(data::join({"auth", "access-id", accessToken}, ':')));
} catch (const redis_exception::KeyNotFound& e) {
throw ResponseException(
Expand All @@ -157,7 +156,6 @@ int64_t PlayerManager::getPlayerIdByAccessToken(const string& accessToken) {

bool PlayerManager::tryRefresh(string& accessToken) {
const auto ttl = chrono::milliseconds(pTtl(data::join({"auth", "access-id", accessToken}, ':')));
LOG_DEBUG << "ttl: " << ttl.count() << ", _refreshExpiration: " << _refreshExpiration.count();
if (ttl.count() == -2) {
throw ResponseException(
i18n("invalidAccessToken"),
Expand All @@ -166,7 +164,6 @@ bool PlayerManager::tryRefresh(string& accessToken) {
);
}
if (ttl < _refreshExpiration) {
LOG_DEBUG << "refreshing";
const auto playerId = getPlayerIdByAccessToken(accessToken);
NO_EXCEPTION(
del(data::join({"auth", "access-id", accessToken}, ':'));
Expand Down

0 comments on commit 3ad257e

Please sign in to comment.