Replies: 1 comment
-
import logging
requests_cache_logger = logging.getLogger('requests_cache.session')
requests_cache_logger.setLevel(logging.ERROR) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
nschloe
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After a fixed amount of time, I'd like to expire my cache, but in case the network is down after when refreshing is due, I'd like to allow some time during which the actually expired cache can still be used. I think
stale_if_error
is what I want (reading it asuse_stale_cache_if_error
):I'd like the user to be unaware of this. Unfortunately, the failing
get
will still print a bigerror message. Any way this can be suppressed?
Beta Was this translation helpful? Give feedback.
All reactions