Skip to content

Commit 862c200

Browse files
committed
tidy
1 parent 0735f19 commit 862c200

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

delta_backend/src/delta.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,27 +49,19 @@ def get_vaccine_type(patientsk) -> str:
4949
Handles Errors: If an exception occurs, it logs the error, sends the failed event to an SQS Dead Letter Queue (DLQ) using the send_message function, and raises the exception.
5050
"""
5151
def handler(event, context):
52-
logger.info("Starting Delta Handler - SW debugs")
52+
logger.info("Starting Delta Handler")
5353
log_data = dict()
5454
firehose_log = dict()
5555
operation_outcome = dict()
5656
log_data["function_name"] = "delta_sync"
5757
intrusion_check = True
5858
try:
59-
logger.info("Starting Delta Handler")
6059
dynamodb = boto3.resource("dynamodb", region_name="eu-west-2")
6160
delta_table = dynamodb.Table(delta_table_name)
6261

6362
# Converting ApproximateCreationDateTime directly to string will give Unix timestamp
6463
# I am converting it to isofformat for filtering purpose. This can be changed accordingly
6564

66-
# log out the event json structure but limit to 80 characters per text field
67-
68-
contents = json.dumps(event, indent=2, default=lambda x: str(x)[:80])
69-
logger.info("Dump of event")
70-
logger.info("Event: %s", contents)
71-
72-
7365
for record in event["Records"]:
7466
start = time.time()
7567
log_data["date_time"] = str(datetime.now())

failed_tests.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)