Skip to content

Commit d11fc9a

Browse files
debug log the task creation body
1 parent 71604ff commit d11fc9a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gen3workflow/routes/ga4gh_tes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,13 @@ def get_non_allowed_images(images: set, username: str) -> set:
7474
return non_allowed_images
7575

7676

77+
# TODO add test for endpoint with trailing slash
7778
@router.post("/tasks", status_code=HTTP_200_OK)
7879
async def create_task(request: Request, auth=Depends(Auth)) -> dict:
7980
await auth.authorize("create", ["/services/workflow/gen3-workflow/tasks"])
8081

8182
body = await get_request_body(request)
83+
logger.debug(f"Incoming task creation request body: {body}")
8284

8385
# add the `AUTHZ` tag to the task, so access can be checked by the other endpoints
8486
token_claims = await auth.get_token_claims()

0 commit comments

Comments
 (0)