Skip to content

Commit

Permalink
Don't log health or ready endpoints to avoid log spam
Browse files Browse the repository at this point in the history
  • Loading branch information
rsbowman-striveworks committed Feb 9, 2024
1 parent 288a769 commit 77e1be6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion api/velour_api/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
logger = structlog.get_logger()


def log_request(request: Request):
def log_request(
request: Request, ignore_paths=frozenset(["/health", "/ready"])
):
if request.url.path in ignore_paths:
return
logger.info(
"Velour API Call",
method=request.method,
Expand Down

0 comments on commit 77e1be6

Please sign in to comment.