fix: fix Elixir 1.15 depreciations
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -57,7 +57,7 @@ defmodule Mobilizon.GraphQL.API.Reports do
|
||||
end
|
||||
|
||||
if antispam_response != :ok do
|
||||
Logger.warn("Antispam response has been #{inspect(antispam_response)}")
|
||||
Logger.warning("Antispam response has been #{inspect(antispam_response)}")
|
||||
end
|
||||
|
||||
{:ok, report}
|
||||
|
||||
@@ -123,7 +123,7 @@ defmodule Mobilizon.GraphQL.Error do
|
||||
defp metadata(:unknown), do: {500, dgettext("errors", "Something went wrong")}
|
||||
|
||||
defp metadata(code) do
|
||||
Logger.warn("Unhandled error code: #{inspect(code)}")
|
||||
Logger.warning("Unhandled error code: #{inspect(code)}")
|
||||
{422, to_string(code)}
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user