-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include file, line and mfa in basic formatter metadata #138
base: master
Are you sure you want to change the base?
Include file, line and mfa in basic formatter metadata #138
Conversation
2365e64
to
9a2decf
Compare
assert metadata |> Map.get("file") |> to_string() =~ "logger_json/formatters/basic_test.exs" | ||
assert metadata |> Map.get("line") |> is_integer() | ||
|
||
assert metadata["mfa"] === [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To make it more readable I think we need a special case for encoding this one, making it look like an anonymous function, e.g.: Elixir.LoggerJSON.Formatters.BasicTest."test logs file, line and mfa as metadata"/1
. See here: https://github.com/Nebo15/logger_json/blob/master/lib/logger_json/formatters/google_cloud.ex#L237
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, good point. How about now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AndrewDryga pinging just in case forgotten - please have a look whenever you have time! 🙏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AndrewDryga would you happen to have time to have a look?
9a2decf
to
edbcad7
Compare
Would love to see this merged in - anything I can do to help move it along? |
Include file, line and mfa in the basic formatter metadata.
Fixes #137