Log when cached_endpoint decorator is used.

This commit is contained in:
voussoir 2023-02-25 14:11:07 -08:00
parent 78636207ab
commit 04817df227

View file

@ -150,6 +150,8 @@ def cached_endpoint(max_age, etag_function=None, max_urls=1000):
state.last_run = time.monotonic() state.last_run = time.monotonic()
return value return value
log.debug('Decorating %s with cached_endpoint.', function)
@functools.wraps(function) @functools.wraps(function)
def wrapped(*args, **kwargs): def wrapped(*args, **kwargs):
# Should I use a threading.Lock to prevent two simultaneous requests # Should I use a threading.Lock to prevent two simultaneous requests