Closed jhchen closed 4 years ago
Thanks for opening an issue, this makes a lot of sense to do
I've opened #430 to resolve this 🙂
Thanks for the quick fix @mitchellhenke! Unfortunately there is a bit of a bug with the solution in that :warn
is the atom Elixir uses while Sentry only recognizes :warning
. I believe this is the only level that has a difference between Elixir and Sentry
experiencing same behaviour (as jhchen stated) with client version 8.0.2
.
Is fix for this on roadmap or PRs are welcome?
Yep, it’s on my list!
I'm seeing again the same issue: when I send a Logger.warn
or Logger.warning
, the level
is error, the logger_level
is warn. Regression? Am I missing anything?
Environment
Description
With
capture_log_messages
onLogger.warn
gets sent to Sentry as an error. Sentry does include the level in the extra metadata so not sure if this behavior is intentional.It seems the cause is logger_backend.ex:106 sets up the
logger_level
into theextra
metadata and passes through to capture_message, which eventually creates a new Event. Withoutlevel
set, it will default to error.Expected Behavior
Sentry would sent the message as a warning
Actual Behavior
Sentry sends as an error
Steps to Reproduce
capture_log_messages
and include at least warnings as minimal level to report