Log when cached_endpoint decorator is used.
This commit is contained in:
parent
78636207ab
commit
04817df227
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue