Closed altjohndev closed 7 months ago
Hi @AndrewDryga is this library currently active and accepting PRs?
Hello @altjohndev, sure we accept PR's. But I have a strong feeling that I want to rewrite this library as a logger formatter now :)
Could we get a release with this PR, please? We have the same issue spamming us.
Until then we could use the commit hash. Turns out we can't, since our package depends on this package. :/
@andreyuhai @altjohndev sorry for making you wait guys, was trying to test it in our production first :). The version is published.
Logger.compare_levels/2 triggers IO.warn/1 whenever we use it with
:warn
as parameter:Sadly, any backend configured for
Logger
will translate:warning
level to:warn
for backward compatibility (ref), which makes the current implementation of this library to always trigger theIO
warn message for warning logs.This PR addresses that by converting the log
:warn
level to:warning
before callingLogger.compare_levels/2
for Elixir>= 1.11.0
.