autotraderuk / fastapi-mlflow

Deploy mlflow models as JSON APIs with minimal new code
Apache License 2.0
19 stars 4 forks source link

Log errors when returning a 500 request #15

Closed bloomonkey closed 1 year ago

bloomonkey commented 1 year ago

When handling errors [here]|(https://github.com/autotraderuk/fastapi-mlflow/blob/main/fastapi_mlflow/applications.py#L33) log an error message using standard Python logging framework. Also include x-request-id header if present.