Skip to content

Commit

Permalink
changing redis connect failure into a critical
Browse files Browse the repository at this point in the history
  • Loading branch information
brifordwylie committed Aug 12, 2024
1 parent 003a9af commit a43774f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sageworks/utils/redis_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ class RedisCache:
)
log.info(f"Redis connection success: {host}:{port}...")
except (redis.exceptions.ConnectionError, redis.exceptions.TimeoutError):
log.warning(f"Could not connect to Redis Database: {host}:{port}")
log.warning("SageWorks will still function, but will be SLOW without Redis...")
log.critical(f"Redis Database connection fail: {host}:{port}")
log.critical("SageWorks is now running in a degraded state...")

@classmethod
def check(cls):
Expand Down

0 comments on commit a43774f

Please sign in to comment.