diff --git a/kdb-bot/src/bot_data/service/server_repository_service.py b/kdb-bot/src/bot_data/service/server_repository_service.py index a90c46a0..2d158fad 100644 --- a/kdb-bot/src/bot_data/service/server_repository_service.py +++ b/kdb-bot/src/bot_data/service/server_repository_service.py @@ -57,7 +57,6 @@ class ServerRepositoryService(ServerRepositoryABC): def get_server_by_id(self, server_id: int) -> Server: cs = self._cache.cached_server.where(lambda x: x.id == server_id).single_or_default() if cs is not None: - self._logger.error(__name__, f"CACHE") return cs self._logger.trace(__name__, f"Send SQL command: {Server.get_select_by_id_string(server_id)}") @@ -69,7 +68,6 @@ class ServerRepositoryService(ServerRepositoryABC): def get_server_by_discord_id(self, discord_id: int) -> Server: cs = self._cache.cached_server.where(lambda x: x.discord_id == discord_id).single_or_default() if cs is not None: - self._logger.error(__name__, f"CACHE") return cs self._logger.trace( @@ -82,7 +80,6 @@ class ServerRepositoryService(ServerRepositoryABC): def find_server_by_discord_id(self, discord_id: int) -> Optional[Server]: cs = self._cache.cached_server.where(lambda x: x.discord_id == discord_id).single_or_default() if cs is not None: - self._logger.error(__name__, f"CACHE") return cs self._logger.trace(