Skip to content

Commit 3b1b8e1

Browse files
author
Bob Strahan
committed
Add JSON logging for Lambda event in start_codebuild handler
1 parent 5f91075 commit 3b1b8e1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lambda/start_codebuild/index.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"""CodeBuild Starter Lambda Function"""
44
import logging
55
from os import getenv
6+
import json
67

78
import boto3
89
from botocore.config import Config as BotoCoreConfig
@@ -96,4 +97,5 @@ def delete_no_op(event, _):
9697

9798
def handler(event, context):
9899
"""Lambda Handler"""
100+
LOGGER.info("Received event: %s", json.dumps(event))
99101
HELPER(event, context)

0 commit comments

Comments
 (0)