mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-19 22:27:59 +01:00
Warn on copy failure
This commit is contained in:
parent
464cc26a85
commit
a7ffde8f89
1 changed files with 7 additions and 3 deletions
|
@ -71,9 +71,13 @@ defmodule Philomena.Objects do
|
||||||
# |> ExAws.request!(opts[:config_overrides])
|
# |> ExAws.request!(opts[:config_overrides])
|
||||||
# end)
|
# end)
|
||||||
|
|
||||||
file_path = Briefly.create!()
|
try do
|
||||||
download_file(source_key, file_path)
|
file_path = Briefly.create!()
|
||||||
upload(dest_key, file_path)
|
download_file(source_key, file_path)
|
||||||
|
upload(dest_key, file_path)
|
||||||
|
rescue
|
||||||
|
_ -> Logger.warn("Failed to copy #{source_key} -> #{dest_key}")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue