Update api/extensions/ext_redis.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
pull/21044/head
crazywoola 11 months ago committed by GitHub
parent 1ed1edc07e
commit e483d0db89
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -137,7 +137,7 @@ def redis_fallback(default_return: Any = None):
try: try:
return func(*args, **kwargs) return func(*args, **kwargs)
except RedisError as e: except RedisError as e:
logger.warning(f"Redis operation failed in {func.__name__}: {str(e)}") logger.warning(f"Redis operation failed in {func.__name__}: {str(e)}", exc_info=True)
return default_return return default_return
return wrapper return wrapper

Loading…
Cancel
Save