fix logger deprecations
This commit is contained in:
parent
3107b01148
commit
52838bcdc7
3 changed files with 5 additions and 5 deletions
|
@ -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.")
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue