Skip to content

Commit eafb1b9

Browse files
committed
Add S3 logging
1 parent c134e9e commit eafb1b9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/hostmgr/helpers/S3.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,17 @@ struct S3Manager {
114114
let s3 = S3(client: aws, region: region)
115115

116116
guard Configuration.shared.allowAWSAcceleratedTransfer else {
117+
logger.log(level: .info, "Using Standard S3 Download")
117118
return s3
118119
}
119120

120121
guard try bucketTransferAccelerationIsEnabled(for: bucket, in: region) else {
122+
logger.log(level: .info, "Using Standard S3 Download")
121123
return s3
122124
}
123125

126+
logger.log(level: .info, "Using Accelerated S3 Download")
127+
124128
return S3(client: aws, region: region, endpoint: "https://\(bucket).s3-accelerate.amazonaws.com")
125129
}
126130

0 commit comments

Comments
 (0)