We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 171ba41 commit 8440c9aCopy full SHA for 8440c9a
lambda/main.py
@@ -11,7 +11,8 @@
11
12
13
def lambda_handler(event, context):
14
- logger.debug("Input event: {}".format(json.dumps(event)))
+ if event.get('log_event', False):
15
+ logger.debug("Input event: {}".format(json.dumps(event)))
16
17
cmd = event['interpreter']
18
if event['command'] is not None:
@@ -23,7 +24,8 @@ def lambda_handler(event, context):
23
24
cmd.append(scriptpath)
25
26
# Run the command as a subprocess
- logger.info("Running command: {}".format(cmd))
27
28
+ logger.info("Running command: {}".format(cmd))
29
30
# For the subprocess environment, use all of the existing env vars, plus
31
# any new ones. New ones with the same name will overwrite.
0 commit comments