@@ -156,12 +156,14 @@ def _handle_get_application_request(self, app_id, semver, key, logical_id):
156
156
:param string key: The dictionary key consisting of (ApplicationId, SemanticVersion)
157
157
:param string logical_id: the logical_id of this application resource
158
158
"""
159
+ LOG .info ("Getting application {}/{} from serverless application repo..." .format (app_id , semver ))
159
160
get_application = lambda app_id , semver : self ._sar_client .get_application (
160
161
ApplicationId = self ._sanitize_sar_str_param (app_id ), SemanticVersion = self ._sanitize_sar_str_param (semver )
161
162
)
162
163
try :
163
164
self ._sar_service_call (get_application , logical_id , app_id , semver )
164
165
self ._applications [key ] = {"Available" }
166
+ LOG .info ("Finished getting application {}/{}." .format (app_id , semver ))
165
167
except EndpointConnectionError as e :
166
168
# No internet connection. Don't break verification, but do show a warning.
167
169
warning_message = "{}. Unable to verify access to {}/{}." .format (e , app_id , semver )
@@ -177,10 +179,12 @@ def _handle_create_cfn_template_request(self, app_id, semver, key, logical_id):
177
179
:param string key: The dictionary key consisting of (ApplicationId, SemanticVersion)
178
180
:param string logical_id: the logical_id of this application resource
179
181
"""
182
+ LOG .info ("Requesting to create CFN template {}/{} in serverless application repo..." .format (app_id , semver ))
180
183
create_cfn_template = lambda app_id , semver : self ._sar_client .create_cloud_formation_template (
181
184
ApplicationId = self ._sanitize_sar_str_param (app_id ), SemanticVersion = self ._sanitize_sar_str_param (semver )
182
185
)
183
186
response = self ._sar_service_call (create_cfn_template , logical_id , app_id , semver )
187
+ LOG .info ("Requested to create CFN template {}/{} in serverless application repo." .format (app_id , semver ))
184
188
self ._applications [key ] = response [self .TEMPLATE_URL_KEY ]
185
189
if response ["Status" ] != "ACTIVE" :
186
190
self ._in_progress_templates .append ((response [self .APPLICATION_ID_KEY ], response ["TemplateId" ]))
@@ -293,6 +297,7 @@ def on_after_transform_template(self, template):
293
297
self ._in_progress_templates = []
294
298
295
299
# Check each resource to make sure it's active
300
+ LOG .info ("Checking resources in serverless application repo..." )
296
301
for application_id , template_id in temp :
297
302
get_cfn_template = (
298
303
lambda application_id , template_id : self ._sar_client .get_cloud_formation_template (
@@ -302,6 +307,7 @@ def on_after_transform_template(self, template):
302
307
)
303
308
response = self ._sar_service_call (get_cfn_template , application_id , application_id , template_id )
304
309
self ._handle_get_cfn_template_response (response , application_id , template_id )
310
+ LOG .info ("Finished checking resources in serverless application repo." )
305
311
306
312
# Don't sleep if there are no more templates with PREPARING status
307
313
if len (self ._in_progress_templates ) == 0 :
0 commit comments