Skip to content

Commit

Permalink
fix(settings): fix settings initialisation
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertRosca committed Oct 2, 2024
1 parent c459dbf commit 8006e73
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/zulip_write_only_proxy/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ def create_app():
from . import routers, services
from ._logging import RequestLoggingMiddleware
from .settings import configure as configure_settings
from .settings import settings

configure_settings()
settings = configure_settings()

@asynccontextmanager
async def lifespan(app: fastapi.FastAPI):
Expand Down Expand Up @@ -91,9 +90,8 @@ def get_trusted_hosts(logger): # pragma: no cover

from . import _logging, get_logger
from .settings import configure as configure_settings
from .settings import settings

configure_settings()
settings = configure_settings()

_logging.configure(settings.debug, add_call_site_parameters=False)

Expand Down

0 comments on commit 8006e73

Please sign in to comment.