Skip to content

Commit

Permalink
fix: Bug in parse_message (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
moritzploss-k authored Aug 12, 2021
2 parents 58fd5b7 + bd9ea54 commit 61bbd8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
{platform_define, "^R14", no_callbacks}
]}.
{deps, [
{jsx, ".*", {git, "git@github.com:talentdeficit/jsx.git", {branch, master}}},
{stdlib2, {git, "git@github.com:kivra/stdlib2.git", {branch, master}}}
{jsx, ".*", {git, "git@github.com:kivra/jsx.git", {tag, "2.9.0"}}},
{stdlib2, {git, "git@github.com:kivra/stdlib2.git", {branch, master}}}
]}.
4 changes: 1 addition & 3 deletions src/raven_error_logger.erl
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,8 @@ parse_message(Level, Pid, "Exception: ~p\n"
[{{Class, Reason}, [{_, _, _, _} | _] = Stacktrace}, Extras])
when Class =:= exit; Class =:= error; Class =:= throw ->
{User, ExtrasWithoutUser} = extract_user(Extras),
ExtrasLevel = proplists:get_value(level, Extras, false),
TheLevel = ExtrasLevel orelse Level,
{format(Format, [{Class, Reason}, Extras]), [
{level, TheLevel},
{level, proplists:get_value(level, Extras, Level)},
{exception, {Class, Reason}},
{stacktrace, Stacktrace},
{extra, [
Expand Down

0 comments on commit 61bbd8e

Please sign in to comment.