Two warn -> info log lines in AttachmentUpload
This commit is contained in:
parent
2cdbed7e6b
commit
aa1abe6b07
@ -179,7 +179,7 @@ public struct AttachmentUpload {
|
||||
attempt: attempt,
|
||||
progress: internalProgress
|
||||
)
|
||||
attempt.logger.warn("Attachment uploaded successfully. \(bytesAlreadyUploaded) -> \(internalProgress.completedUnitCount) (\(downloadTimeLogString(internalProgress.completedUnitCount))")
|
||||
attempt.logger.info("Attachment uploaded successfully. \(bytesAlreadyUploaded) -> \(internalProgress.completedUnitCount) (\(downloadTimeLogString(internalProgress.completedUnitCount))")
|
||||
} catch {
|
||||
if let statusCode = error.httpStatusCode {
|
||||
attempt.logger.warn("Encountered error during upload. (code=\(statusCode)")
|
||||
@ -235,7 +235,7 @@ public struct AttachmentUpload {
|
||||
}
|
||||
|
||||
if uploadReportedRemoteProgress {
|
||||
attempt.logger.warn("Upload reported making progress: \(bytesAlreadyUploaded) -> \(latestUploadProgressBytes) (\(downloadTimeLogString(UInt64(latestUploadProgressBytes))))")
|
||||
attempt.logger.info("Upload reported making progress: \(bytesAlreadyUploaded) -> \(latestUploadProgressBytes) (\(downloadTimeLogString(UInt64(latestUploadProgressBytes))))")
|
||||
}
|
||||
|
||||
switch failureMode {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user