Removed test logs

This commit is contained in:
Sven Heidemann 2023-03-29 23:05:41 +02:00
parent 809c6d4cb9
commit a4d3cffa93

View File

@ -57,7 +57,6 @@ class ServerRepositoryService(ServerRepositoryABC):
def get_server_by_id(self, server_id: int) -> Server: 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() cs = self._cache.cached_server.where(lambda x: x.id == server_id).single_or_default()
if cs is not None: if cs is not None:
self._logger.error(__name__, f"CACHE")
return cs return cs
self._logger.trace(__name__, f"Send SQL command: {Server.get_select_by_id_string(server_id)}") 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: 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() cs = self._cache.cached_server.where(lambda x: x.discord_id == discord_id).single_or_default()
if cs is not None: if cs is not None:
self._logger.error(__name__, f"CACHE")
return cs return cs
self._logger.trace( self._logger.trace(
@ -82,7 +80,6 @@ class ServerRepositoryService(ServerRepositoryABC):
def find_server_by_discord_id(self, discord_id: int) -> Optional[Server]: 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() cs = self._cache.cached_server.where(lambda x: x.discord_id == discord_id).single_or_default()
if cs is not None: if cs is not None:
self._logger.error(__name__, f"CACHE")
return cs return cs
self._logger.trace( self._logger.trace(