Skip to content

Commit

Permalink
issue #51: Add logging for tracking user in inference request
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxenceGui committed Apr 8, 2024
1 parent 9c161d0 commit f4060e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

try:
MAX_CONTENT_LENGTH = int(os.getenv("NACHET_MAX_CONTENT_LENGTH"))
except TypeError:
except (TypeError, ValueError):
MAX_CONTENT_LENGTH = 16


Expand Down Expand Up @@ -167,6 +167,7 @@ async def inference_request():
imageDims = data["imageDims"]
image_base64 = data["image"]

print(f"Requested by user: {container_name}") # TODO: Transform into logging
pipelines_endpoints = CACHE.get("pipelines")
blob_service_client = app.config.get("BLOB_CLIENT")

Expand Down

0 comments on commit f4060e1

Please sign in to comment.