diff --git a/voussoirkit/flasktools.py b/voussoirkit/flasktools.py index 5f63ed5..9b9b0f4 100644 --- a/voussoirkit/flasktools.py +++ b/voussoirkit/flasktools.py @@ -150,6 +150,8 @@ def cached_endpoint(max_age, etag_function=None, max_urls=1000): state.last_run = time.monotonic() return value + log.debug('Decorating %s with cached_endpoint.', function) + @functools.wraps(function) def wrapped(*args, **kwargs): # Should I use a threading.Lock to prevent two simultaneous requests