Fix more Logger warn -> warning
This commit is contained in:
parent
cd3abe0b4c
commit
2207fafa91
@ -9,7 +9,7 @@ defmodule Mix.Tasks.Pleroma.Ecto.MigrateTest do
|
|||||||
|
|
||||||
test "ecto.migrate info message" do
|
test "ecto.migrate info message" do
|
||||||
level = Logger.level()
|
level = Logger.level()
|
||||||
Logger.configure(level: :warn)
|
Logger.configure(level: :warning)
|
||||||
|
|
||||||
assert capture_log(fn ->
|
assert capture_log(fn ->
|
||||||
Mix.Tasks.Pleroma.Ecto.Migrate.run()
|
Mix.Tasks.Pleroma.Ecto.Migrate.run()
|
||||||
|
@ -9,7 +9,7 @@ defmodule Mix.Tasks.Pleroma.Ecto.RollbackTest do
|
|||||||
|
|
||||||
test "ecto.rollback info message" do
|
test "ecto.rollback info message" do
|
||||||
level = Logger.level()
|
level = Logger.level()
|
||||||
Logger.configure(level: :warn)
|
Logger.configure(level: :warning)
|
||||||
|
|
||||||
assert capture_log(fn ->
|
assert capture_log(fn ->
|
||||||
Mix.Tasks.Pleroma.Ecto.Rollback.run(["--env", "test"])
|
Mix.Tasks.Pleroma.Ecto.Rollback.run(["--env", "test"])
|
||||||
|
@ -443,13 +443,13 @@ defmodule Pleroma.ConfigDBTest do
|
|||||||
|
|
||||||
test "common keyword" do
|
test "common keyword" do
|
||||||
assert ConfigDB.to_elixir_types([
|
assert ConfigDB.to_elixir_types([
|
||||||
%{"tuple" => [":level", ":warn"]},
|
%{"tuple" => [":level", ":warning"]},
|
||||||
%{"tuple" => [":meta", [":all"]]},
|
%{"tuple" => [":meta", [":all"]]},
|
||||||
%{"tuple" => [":path", ""]},
|
%{"tuple" => [":path", ""]},
|
||||||
%{"tuple" => [":val", nil]},
|
%{"tuple" => [":val", nil]},
|
||||||
%{"tuple" => [":webhook_url", "https://hooks.slack.com/services/YOUR-KEY-HERE"]}
|
%{"tuple" => [":webhook_url", "https://hooks.slack.com/services/YOUR-KEY-HERE"]}
|
||||||
]) == [
|
]) == [
|
||||||
level: :warn,
|
level: :warning,
|
||||||
meta: [:all],
|
meta: [:all],
|
||||||
path: "",
|
path: "",
|
||||||
val: nil,
|
val: nil,
|
||||||
|
Loading…
Reference in New Issue
Block a user