mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-28 03:13:13 +00:00
Add logging
This commit is contained in:
parent
7f78bd7e37
commit
dea968463d
|
@ -8,6 +8,8 @@ defmodule Pleroma.Workers.AttachmentsCleanupWorker do
|
|||
alias Pleroma.Object
|
||||
alias Pleroma.Repo
|
||||
|
||||
require Logger
|
||||
|
||||
use Pleroma.Workers.WorkerHelper, queue: "attachments_cleanup"
|
||||
|
||||
@impl Oban.Worker
|
||||
|
@ -77,6 +79,7 @@ defmodule Pleroma.Workers.AttachmentsCleanupWorker do
|
|||
|
||||
file_path = String.trim_leading(href, "#{base_url}/#{prefix}")
|
||||
|
||||
Logger.warn("Deleting file #{file_path} (orig: #{href}, base_url: #{base_url})")
|
||||
uploader.delete_file(file_path)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue