Skip to content

Commit

Permalink
Replace other Logger.levels() usages
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewDryga committed May 17, 2024
1 parent 75077a9 commit 81cdcee
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/logger_json/formatters/basic_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ defmodule LoggerJSON.Formatters.BasicTest do
end

test "logs message of a given level" do
for level <- Logger.levels() do
for level <- [:error, :info, :debug, :emergency, :alert, :critical, :warning, :notice] do
log =
capture_log(level, fn ->
Logger.log(level, "Hello")
Expand Down
2 changes: 1 addition & 1 deletion test/logger_json/formatters/datadog_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ defmodule LoggerJSON.Formatters.DatadogTest do
end

test "logs an LogEntry of a given level" do
for level <- Logger.levels() do
for level <- [:error, :info, :debug, :emergency, :alert, :critical, :warning, :notice] do
log =
capture_log(level, fn ->
Logger.log(level, "Hello")
Expand Down
2 changes: 1 addition & 1 deletion test/logger_json/formatters/google_cloud_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ defmodule LoggerJSON.Formatters.GoogleCloudTest do
end

test "logs an LogEntry of a given level" do
for level <- Logger.levels() do
for level <- [:error, :info, :debug, :emergency, :alert, :critical, :warning, :notice] do
log_entry =
capture_log(level, fn ->
Logger.log(level, "Hello")
Expand Down

0 comments on commit 81cdcee

Please sign in to comment.