mirror of
https://github.com/discourse/discourse.git
synced 2024-12-19 08:25:58 +08:00
DEV: Fix s3:upload_assets
not logging newlines (#30219)
Follow-up to 9a2e31b9af
This commit is contained in:
parent
9a2e31b9af
commit
19321a0b86
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user