Skip to content

Commit cc3d128

Browse files
More logging to sync
1 parent 6c29512 commit cc3d128

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

application/service_sync/service_sync.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,16 @@ def lambda_handler(event: SQSEvent, context: LambdaContext) -> None: # noqa: AR
5454
nhs_entity=nhs_entity,
5555
service_histories=service_histories,
5656
)
57-
logger.info("TEST LOG ", nhs_entity.org_sub_type)
58-
logger.info("TEST LOG ", changes_to_dos)
57+
if (nhs_entity is None):{
58+
logger.info("NHS ENTITY IS NONE")
59+
}
60+
61+
logger.info("TEST LOG", nhs_entity.org_sub_type)
62+
logger.info("TEST LOG", changes_to_dos)
5963
logger.warning("TOM TEST LOG", nhs_entity.org_sub_type,
60-
cloudwatch_metric_filter_matching_attribute="UpdateRequestSuccess")
64+
environment=getenv("ENVIRONMENT"),
65+
cloudwatch_metric_filter_matching_attribute="UpdateRequestSuccess"
66+
)
6167
# Update Service History with changes to be made
6268
service_histories = changes_to_dos.service_histories
6369
# Update DoS data

0 commit comments

Comments
 (0)