Skip to content

Commit 16434ad

Browse files
committed
Add debug output
1 parent 4fd3ef6 commit 16434ad

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

swift/example_code/support/scenario/Sources/Scenario.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,14 +292,20 @@ class Scenario {
292292
/// - Returns: An array of services.
293293
func getServices() async -> [SupportClientTypes.Service] {
294294
do {
295+
print("Calling describeServices...")
295296
let output = try await supportClient.describeServices(
296297
input: DescribeServicesInput()
297298
)
298299

300+
print("Back from describeServices.")
301+
299302
guard let services = output.services else {
303+
print("No service list returned.")
300304
return []
301305
}
302306

307+
print("Found \(services.count) services.")
308+
303309
return services
304310
} catch let error as AWSServiceError {
305311
// SubscriptionRequiredException isn't a modeled error, so we

0 commit comments

Comments
 (0)