mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 07:17:09 +08:00
DEV: Fix s3:upload_assets
not logging newlines (#30219)
Follow-up to 9a2e31b9afb4740d876c442ddae49003e2078170
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…
x
Reference in New Issue
Block a user