Skip to content

Commit

Permalink
log env info
Browse files Browse the repository at this point in the history
  • Loading branch information
ccheng26 committed Jul 25, 2024
1 parent 4d8f994 commit ac26bb7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/healthcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ async def health(request: Request) -> HealthCheck:
git_sha = os.environ.get("IMAGE_TAG", "")
build_date = os.environ.get("BUILD_DATE", "")
service_name = os.environ.get("ENVIRONMENT", "")
logger.info(f"GH ENV: {os.environ.get("GITHUB_ENV")}")

logger.info(f"ALL ENV: {os.environ}")
hostname = f"{platform.node()} {socket.gethostname()}"

logger.info(f"Healthy {git_sha} built at {build_date}: {service_name} {hostname}")
Expand Down

0 comments on commit ac26bb7

Please sign in to comment.