DEV: Log more when verbose_upload_logging is enabled (#16177)
A message was logged when download started, but it was not known if a error during the download.
This commit is contained in:
parent
08a1f41582
commit
6a295ea9e9
|
@ -110,7 +110,11 @@ module Jobs
|
||||||
tmp_file_name: "discourse-hotlinked",
|
tmp_file_name: "discourse-hotlinked",
|
||||||
follow_redirect: true
|
follow_redirect: true
|
||||||
)
|
)
|
||||||
rescue
|
rescue => e
|
||||||
|
if SiteSetting.verbose_upload_logging
|
||||||
|
Rails.logger.warn("Verbose Upload Logging: Error '#{e.message}' while downloading #{src}")
|
||||||
|
end
|
||||||
|
|
||||||
if (retries -= 1) > 0 && !Rails.env.test?
|
if (retries -= 1) > 0 && !Rails.env.test?
|
||||||
sleep 1
|
sleep 1
|
||||||
retry
|
retry
|
||||||
|
|
Loading…
Reference in New Issue