Skip to content

Commit

Permalink
Update app/main.py
Browse files Browse the repository at this point in the history
Co-authored-by: Matěj Plch <plch.matej@gmail.com>
  • Loading branch information
lukynmatuska and Afforix authored Jan 30, 2025
1 parent 75a6737 commit a567d38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

class EndpointFilter(logging.Filter):
def filter(self, record: logging.LogRecord) -> bool:
return record.getMessage().find("/health-check") == -1
return "/health-check" not in record.getMessage()

# Filter out route for docker container health check
logging.getLogger("uvicorn.access").addFilter(EndpointFilter())
Expand Down

0 comments on commit a567d38

Please sign in to comment.