Skip to content

Commit b735087

Browse files
committed
added json parsing of logging
1 parent c80b97e commit b735087

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

week_9_monitoring/lambda_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def lambda_handler(event, context):
2525
logger.info(f"Got the input: {body['sentence']}")
2626

2727
response = inferencing_instance.predict(body["sentence"])
28-
logger.info(response)
28+
logger.info(json.dumps(response))
2929
return {
3030
"statusCode": 200,
3131
"headers": {},

0 commit comments

Comments
 (0)