Elixir 1.15: Chase the Logger.warn deprecation
This commit is contained in:
parent
d72d42f9ce
commit
9896b64f54
31 changed files with 55 additions and 55 deletions
|
|
@ -41,7 +41,7 @@ defmodule Pleroma.Tests.Helpers do
|
|||
# NOTE: `clear_config([section, key], value)` != `clear_config([section], key: value)` (!)
|
||||
# Displaying a warning to prevent unintentional clearing of all but one keys in section
|
||||
if Keyword.keyword?(temp_setting) and length(temp_setting) == 1 do
|
||||
Logger.warn(
|
||||
Logger.warning(
|
||||
"Please change `clear_config([section], key: value)` to `clear_config([section, key], value)`"
|
||||
)
|
||||
end
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ defmodule HttpRequestMock do
|
|||
else
|
||||
error ->
|
||||
with {:error, message} <- error do
|
||||
Logger.warn(to_string(message))
|
||||
Logger.warning(to_string(message))
|
||||
end
|
||||
|
||||
{_, _r} = error
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue