DEV: Fix s3:upload_assets not logging newlines (#30219)

Follow-up to 9a2e31b9af
This commit is contained in:
Alan Guo Xiang Tan 2024-12-11 12:59:17 +08:00 committed by GitHub
parent 9a2e31b9af
commit 19321a0b86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,9 +34,9 @@ def upload(path, remote_path, content_type, content_encoding = nil, logger:)
options[:content_encoding] = content_encoding if content_encoding
if should_skip?(remote_path)
logger << "Skipping: #{remote_path}"
logger << "Skipping: #{remote_path}\n"
else
logger << "Uploading: #{remote_path}"
logger << "Uploading: #{remote_path}\n"
File.open(path) { |file| helper.upload(file, remote_path, options) }
end