Skip to content
This repository was archived by the owner on Mar 23, 2026. It is now read-only.

Commit eab341f

Browse files
committed
add logs
1 parent 743c4bc commit eab341f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

localstack-core/localstack/services/cloudformation/engine/v2/change_set_model_transform.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import boto3
99
import jsonpath_ng
1010
from botocore.exceptions import ClientError, ParamValidationError
11+
from samtranslator.model.exceptions import ExceptionWithMessage
1112
from samtranslator.translator.transform import transform as transform_sam
1213

1314
from localstack.aws.connect import connect_to
@@ -134,6 +135,11 @@ def _apply_global_serverless_transformation(
134135
try:
135136
transformed = transform_sam(template, parameters, loader)
136137
return transformed
138+
except ExceptionWithMessage as e:
139+
# TODO remove these logs, they are only present to help debug a CI issue
140+
LOG.warning("Template: %s, Parameters: %s", template, parameters)
141+
LOG.warning("Error: %s", e, exc_info=True)
142+
raise FailedTransformationException(transformation=SERVERLESS_TRANSFORM, message=str(e))
137143
except Exception as e:
138144
raise FailedTransformationException(transformation=SERVERLESS_TRANSFORM, message=str(e))
139145
finally:

0 commit comments

Comments
 (0)