Skip to content

Commit 76d52ff

Browse files
add logging of headers for APIM status test
1 parent c1f54bd commit 76d52ff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pathology-api/lambda_handler.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ def handler(data: dict[str, Any], context: LambdaContext) -> dict[str, Any]:
141141
correlation_id = headers.get(_CORRELATION_ID_HEADER)
142142

143143
if not correlation_id:
144+
_logger.debug("no correlation_id in the header. Headers = %s", headers)
144145
return {
145146
"statusCode": 500,
146147
"headers": {"Content-Type": "application/fhir+json"},

0 commit comments

Comments
 (0)