Unstructured-IO / unstructured-api-tools

Apache License 2.0
28 stars 10 forks source link

chore: Filter out logs on /healthcheck #171

Closed awalker4 closed 1 year ago

awalker4 commented 1 year ago

Reduce noisy uvicorn logs when polling /healthcheck.

To test, you can run a local copy of api-tools to regenerate one of the pipeline apis, and try calling /healthcheck on it.

For instance, in api-tools, run make install-project-local. Jump over to unstructured-api and run make generate-api and make run-web-app. Make a request to localhost:8000/healthcheck and verify that the uvicorn logs do not show it.

Source: https://github.com/encode/starlette/issues/864#issuecomment-653076434