From 91a89865b94b2c83b7ae266c84b9326c172fc713 Mon Sep 17 00:00:00 2001 From: checktheroads Date: Sun, 19 Apr 2020 09:50:52 -0700 Subject: [PATCH] add logging for cache hit --- hyperglass/api/routes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hyperglass/api/routes.py b/hyperglass/api/routes.py index a3cf268..fc03c34 100644 --- a/hyperglass/api/routes.py +++ b/hyperglass/api/routes.py @@ -61,6 +61,8 @@ async def query(query_data: Query, request: Request): cached = False if cache_response: + log.debug("Query {q} exists in cache", q=cache_key) + # If a cached response exists, reset the expiration time. await cache.expire(cache_key, seconds=cache_timeout)