Fix more Logger warn -> warning

This commit is contained in:
Mark Felder 2023-11-28 20:00:20 +00:00
parent 2207fafa91
commit fb3eb6e0a4
4 changed files with 6 additions and 6 deletions

View File

@ -7,13 +7,13 @@ defmodule Pleroma.Repo.Migrations.AddTrigramExtension do
require Logger
def up do
Logger.warn("ATTENTION ATTENTION ATTENTION\n")
Logger.warning("ATTENTION ATTENTION ATTENTION\n")
Logger.warn(
Logger.warning(
"This will try to create the pg_trgm extension on your database. If your database user does NOT have the necessary rights, you will have to do it manually and re-run the migrations.\nYou can probably do this by running the following:\n"
)
Logger.warn(
Logger.warning(
"sudo -u postgres psql pleroma_dev -c \"create extension if not exists pg_trgm\"\n"
)

View File

@ -26,7 +26,7 @@ def change do
|> Pleroma.Repo.update()
user ->
Logger.warn("User #{user.id} / #{user.nickname} does not seem to have source_data")
Logger.warning("User #{user.id} / #{user.nickname} does not seem to have source_data")
end)
end
end

View File

@ -63,7 +63,7 @@ defp migrate(field, relationship_type_code) do
ON CONFLICT (source_id, relationship_type, target_id) DO NOTHING
""")
else
_ -> Logger.warn("Unresolved #{field} reference: (#{source_uuid}, #{target_id})")
_ -> Logger.warning("Unresolved #{field} reference: (#{source_uuid}, #{target_id})")
end
end
end

View File

@ -8,7 +8,7 @@ defmodule Pleroma.Repo.Migrations.ApIdNotNull do
require Logger
def up do
Logger.warn(
Logger.warning(
"If this migration fails please open an issue at https://git.pleroma.social/pleroma/pleroma/-/issues/new \n"
)