Skip to content

Commit

Permalink
Add headers in debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
nss10 committed Feb 11, 2025
1 parent a7ff992 commit 234a5a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gen3workflow/routes/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,9 @@ async def s3_endpoint(path: str, request: Request):
f"AWS4-HMAC-SHA256 Credential={credentials.access_key}/{date}/{region}/{service}/aws4_request, SignedHeaders={signed_headers}, Signature={signature}"
)
s3_api_url = f"https://{user_bucket}.s3.amazonaws.com/{api_endpoint}"
logger.debug(f"Outgoing S3 request: '{request.method} {s3_api_url}'")
logger.debug(
f"Outgoing S3 request: '{request.method} {s3_api_url} and {headers['authorization']=}'"
)
response = await request.app.async_client.request(
method=request.method,
url=s3_api_url,
Expand Down

0 comments on commit 234a5a3

Please sign in to comment.