From 1f5e906de03bf504cbc5fcc3c3d2e85306eca41d Mon Sep 17 00:00:00 2001 From: lollerfirst Date: Tue, 15 Oct 2024 16:48:41 +0200 Subject: [PATCH] log when a cahced response is found --- cashu/mint/cache.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cashu/mint/cache.py b/cashu/mint/cache.py index a27a420e..b7400fa7 100644 --- a/cashu/mint/cache.py +++ b/cashu/mint/cache.py @@ -39,6 +39,7 @@ async def wrapper(request, payload): logger.debug(f"KEY: {key}") # Check if we have a value under this key if await self.redis.exists(key): + logger.info("Returning a cached response...") return json.loads(await self.redis.get(key)) result = await func(request, payload) # Cache a successful result for `expire` seconds