Skip to content

Commit

Permalink
Attend to PR suggestions from reviewer.
Browse files Browse the repository at this point in the history
  • Loading branch information
shepazon committed Nov 7, 2024
1 parent 912b2b6 commit b7a516b
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions swift/example_code/s3/presigned-urls/Sources/entry.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
// SPDX-License-Identifier: Apache-2.0
//
/// A simple example that shows how to use the AWS SDK for Swift to
/// authenticate using optional static credentials and an AWS IAM role ARN.
/// perform file uploads and downloads to Amazon S3, both with and
/// without presigned requests. Also included is code to perform
/// multi-part uploads.

// snippet-start:[swift.s3.presigned.imports]
import ArgumentParser
Expand All @@ -13,10 +15,6 @@ import Smithy
import SmithyHTTPAPI
// snippet-end:[swift.s3.presigned.imports]

// Import ClientRuntime for logging controls

import ClientRuntime

// -MARK: - Async command line tool

struct ExampleCommand: ParsableCommand {
Expand Down Expand Up @@ -488,9 +486,6 @@ struct Main {
static func main() async {
let args = Array(CommandLine.arguments.dropFirst())

await SDKLoggingSystem().initialize(logLevel: .critical)
SDKDefaultIO.setLogLevel(level: .fatal)

do {
let command = try ExampleCommand.parse(args)
try await command.runAsync()
Expand Down

0 comments on commit b7a516b

Please sign in to comment.