-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Logger logs :process_label if present #13396
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
Conversation
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.
Two nits but looks great. 💯
@@ -530,6 +530,34 @@ defmodule Logger.TranslatorTest do | |||
assert {%RuntimeError{message: "oops"}, [_ | _]} = process_metadata[:crash_reason] | |||
end | |||
|
|||
if :erlang.system_info(:otp_release) >= ~c"27" do |
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.
We got it too 🙃
if :erlang.system_info(:otp_release) >= ~c"27" do | |
if System.otp_release() >= "27" do |
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.
I like to do the following:
@tag skip: System.otp_release() < "27"
(or if ..., do: @tag :skip
.)
because it's less indent and less git diff when it's ultimately gonna be enabled. :)
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.
Sure also works!
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.
Oh that's neat! Thanks @whatyouhide @wojtekmach !
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.
We got it too 🙃
We need to tell Jose 😄
7291154
Co-authored-by: Andrea Leopardi <an.leopardi@gmail.com>
Co-authored-by: José Valim <jose.valim@gmail.com>
See erlang/otp#7720
Following #13392