Skip to content

Commit 4989d6f

Browse files
committed
chore: more uniform log messages at startup
1 parent b0f51e7 commit 4989d6f

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/stac_auth_proxy/app.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,16 @@ async def lifespan(app: FastAPI):
4141
# Wait for upstream servers to become available
4242
if settings.wait_for_upstream:
4343
logger.info("Running upstream server health checks...")
44-
for url in [settings.upstream_url, settings.oidc_discovery_internal_url]:
44+
urls = [settings.upstream_url, settings.oidc_discovery_internal_url]
45+
for url in urls:
4546
await check_server_health(url=url)
47+
logger.info(
48+
"Upstream servers are healthy:\n%s",
49+
"\n".join([f" - {url}" for url in urls]),
50+
)
4651

4752
# Log all middleware connected to the app
48-
logger.debug(
53+
logger.info(
4954
"Connected middleware:\n%s",
5055
"\n".join([f" - {m.cls.__name__}" for m in app.user_middleware]),
5156
)

src/stac_auth_proxy/utils/lifespan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def conformance_str(conformance: str) -> str:
8787
]
8888
)
8989
)
90-
logger.debug(
90+
logger.info(
9191
"Upstream catalog conforms to the following required conformance classes: \n%s",
9292
"\n".join([conformance_str(c) for c in required_conformances]),
9393
)

0 commit comments

Comments
 (0)