diff --git a/tardis/utilities/asynccachemap.py b/tardis/utilities/asynccachemap.py index ef1babef..a331cab8 100644 --- a/tardis/utilities/asynccachemap.py +++ b/tardis/utilities/asynccachemap.py @@ -7,6 +7,8 @@ import logging import json +logger = logging.getLogger("cobald.runtime.tardis.utilities.asynccachemap") + class AsyncCacheMap(Mapping): def __init__(self, update_coroutine, max_age: int = 60 * 15): @@ -36,11 +38,11 @@ async def update_status(self) -> None: try: data = await self._update_coroutine() except json.decoder.JSONDecodeError as je: - logging.error( + logger.error( f"AsyncMap update_status failed: Could not decode json {je}" ) except CommandExecutionFailure as cf: - logging.error(f"AsyncMap update_status failed: {cf}") + logger.error(f"AsyncMap update_status failed: {cf}") else: self._data = data self._last_update = current_time