fix: fix Elixir 1.15 depreciations

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2023-08-02 09:59:09 +02:00
parent 5373f1378f
commit da70427e32
22 changed files with 48 additions and 48 deletions

View File

@@ -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}

View File

@@ -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