diff --git a/src/phlower/app.py b/src/phlower/app.py index cdf51b5..b91cd16 100644 --- a/src/phlower/app.py +++ b/src/phlower/app.py @@ -9,6 +9,7 @@ from pathlib import Path from fastapi import FastAPI +from kombu.utils.url import maybe_sanitize_url from fastapi.responses import FileResponse from fastapi.staticfiles import StaticFiles @@ -385,7 +386,7 @@ async def lifespan(app: FastAPI): logger.info( "Phlower started — broker=%s retention=%dh sqlite=%s", - config.broker_url, + maybe_sanitize_url(config.broker_url), config.retention_hours, config.sqlite_path or "disabled", ) diff --git a/src/phlower/events.py b/src/phlower/events.py index f275f40..f28fd29 100644 --- a/src/phlower/events.py +++ b/src/phlower/events.py @@ -9,6 +9,7 @@ from queue import Empty from celery import Celery +from kombu.utils.url import maybe_sanitize_url from .config import Config from .store import Store @@ -165,7 +166,7 @@ def start(self) -> None: ] for thread in self._threads: thread.start() - logger.info("Celery event consumer started (broker=%s)", self.config.broker_url) + logger.info("Celery event consumer started (broker=%s)", maybe_sanitize_url(self.config.broker_url)) def stop(self) -> None: self._stop.set()