fix logger deprecations

This commit is contained in:
Inhji 2023-06-26 23:17:11 +02:00
parent 3107b01148
commit 52838bcdc7
3 changed files with 5 additions and 5 deletions

View file

@ -106,7 +106,7 @@ defmodule Chiya.Notes.References do
Enum.each(slugs, fn slug ->
case Chiya.Notes.get_note_by_slug_preloaded(slug) do
nil ->
Logger.warn("Reference to '#{slug}' could not be resolved")
Logger.warning("Reference to '#{slug}' could not be resolved")
note ->
add_note_link(slug, origin_note, note)
@ -122,7 +122,7 @@ defmodule Chiya.Notes.References do
Logger.info("Reference to '#{slug}' created")
{:error, changelog} ->
Logger.warn("Reference was not added.")
Logger.warning("Reference was not added.")
Logger.error(inspect(changelog))
end
end
@ -139,7 +139,7 @@ defmodule Chiya.Notes.References do
Logger.info("Reference to '#{slug}' deleted")
error ->
Logger.warn(error)
Logger.warning(error)
end
else
Logger.debug("Note '#{slug}' does not exist anymore.")

View file

@ -109,7 +109,7 @@ defmodule Chiya.Tags.TagUpdater do
{:ok, _} = Notes.delete_note_tag(note_tag)
end
else
Logger.warn("Tag with slug #{slug} was not removed.")
Logger.warning("Tag with slug #{slug} was not removed.")
nil
end
end

View file

@ -59,7 +59,7 @@ defmodule ChiyaWeb.Indie.Token do
:ok
_ ->
Logger.warn("Hostnames do not match: Given #{host_uri}, Actual: #{own_hostname}")
Logger.warning("Hostnames do not match: Given #{host_uri}, Actual: #{own_hostname}")
{:error, "verify_hostname_match", "hostname does not match"}
end
end