Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
zmoog committed Sep 24, 2024
1 parent 1e8842d commit 4dcefd0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions handlers/aws/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ def lambda_handler(lambda_event: dict[str, Any], lambda_context: context_.Contex
AWS Lambda handler in handler.aws package
Parses the config and acts as front controller for inputs
"""
lambda_arn = parse_arn(lambda_context.invoked_function_arn)

shared_logger.debug("lambda triggered", extra={"invoked_function_arn": lambda_context.invoked_function_arn})

try:
Expand Down Expand Up @@ -143,6 +141,7 @@ def lambda_handler(lambda_event: dict[str, Any], lambda_context: context_.Contex

if trigger_type == "cloudwatch-logs":
cloudwatch_logs_event = _from_awslogs_data_to_event(lambda_event["awslogs"]["data"])
lambda_arn = parse_arn(lambda_context.invoked_function_arn)

shared_logger.info("trigger", extra={"size": len(cloudwatch_logs_event["logEvents"])})

Expand Down

0 comments on commit 4dcefd0

Please sign in to comment.