Two warn -> info log lines in AttachmentUpload

This commit is contained in:
sashaweiss-signal 2025-11-04 15:40:56 -08:00
parent 2cdbed7e6b
commit aa1abe6b07

View File

@ -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 {