Skip to content

Commit

Permalink
Fix severity case on older Elixir versions
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewDryga committed May 14, 2024
1 parent ff67f2c commit 7a52b45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/logger_json/formatters/basic.ex
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ defmodule LoggerJSON.Formatters.Basic do
line =
%{
time: utc_time(meta),
severity: Atom.to_string(level),
severity: Atom.to_string(level) |> String.downcase(),
message: encode(message, redactors),
metadata: encode(take_metadata(meta, metadata_selector), redactors)
}
Expand Down

0 comments on commit 7a52b45

Please sign in to comment.