Skip to content

Commit

Permalink
Merge branch 'master' into feature/listen-to-iframe-messages
Browse files Browse the repository at this point in the history
  • Loading branch information
odeimaiz authored Dec 4, 2024
2 parents 0aab1ce + 8817832 commit 17d0dfe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/service-library/src/servicelib/redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from redis.backoff import ExponentialBackoff
from settings_library.redis import RedisDatabase, RedisSettings
from tenacity import retry
from yarl import URL

from .background_task import periodic_task
from .logging_utils import log_catch, log_context
Expand Down Expand Up @@ -94,7 +95,8 @@ def __post_init__(self):
async def setup(self) -> None:
if not await self.ping():
await self.shutdown()
raise CouldNotConnectToRedisError(dsn=self.redis_dsn)
url_safe: URL = URL(self.redis_dsn).with_password("???")
raise CouldNotConnectToRedisError(dsn=f"{url_safe}")

self._health_check_task = asyncio.create_task(
self._check_health(),
Expand Down

0 comments on commit 17d0dfe

Please sign in to comment.