From 3ad257e8fd71a18fcf6bc02526b111931ce49fa1 Mon Sep 17 00:00:00 2001 From: ParticleG Date: Wed, 7 Aug 2024 10:43:44 +0800 Subject: [PATCH] - Remove logs --- plugins/PlayerManager.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/plugins/PlayerManager.cc b/plugins/PlayerManager.cc index 396fd99..aac5af6 100644 --- a/plugins/PlayerManager.cc +++ b/plugins/PlayerManager.cc @@ -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( @@ -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"), @@ -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}, ':'));