-
Notifications
You must be signed in to change notification settings - Fork 280
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
[f-string 1/2] Remove mylog formatting strings #2820
Conversation
Looks like this would enable solving #2757 with a mere call to |
Thanks for including the detection script, this allowed me to catch this line and node.func.attr in ("debug", "info", "warn", "error") where you forgot to include the fifth and ultimate logging level edit: my bad, it's the other way around, |
Good catch, and you're right that I missed a handful of them! |
|
@@ -2,8 +2,13 @@ | |||
7edfcee093cca277307aabdb180e0ffc69768291 | |||
81418e459f16c48d6b7a75d6ef8035dfe9651b39 | |||
|
|||
# transisiton to black | |||
# transition to black |
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.
oops, this is on me, thanks !
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.
Awesome
@@ -238,14 +238,6 @@ def check_parallel_rank(*args, **kwargs): | |||
return check_parallel_rank | |||
|
|||
|
|||
def rootloginfo(*args): |
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.
Note: this was not used anywhere.
@matthewturk @neutrinoceros before merging this, do you think we could set the default logging level to 40 (and then revert it) so that all logs are visited and we're sure nothing is going wrong? |
sure ! may as well go for 50 ! :-) (disregard if I'm mistaken, I think this is the maximal meaningful level) |
I think it is! Let's try it.
…On Thu, Aug 6, 2020 at 9:34 AM Clément Robert ***@***.***> wrote:
sure ! may as well go for 50 ! :-) (disregard if I'm mistaken, I *think*
this is the maximal meaningful level)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2820 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAVXOZDYQ2F4WUZY7X4FHDR7K5QLANCNFSM4PWSH2BA>
.
|
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.
Found two remaining unjustified strings concatenations, otherwise all good ! Thanks again for doing this !
Co-authored-by: Clément Robert <cr52@protonmail.com>
I'm converting to draft until the tests are done, after that I'll revert 19f78f1 and that'll be good to go! |
19f78f1
to
4b381dc
Compare
Good to go now! |
Awesome ! There's a huge queue on CI runner right now, so I'll happily merge this in 10 to 12 hours when it clears. |
Yes ; it ran successfully before reverting the commit that was (temporarily) setting the default log value to 50. |
PR Summary
Replaces all occurrence of
mylog.info("Some information message about %s %s" % ("foo", "bar"))
bymylog.info("Some information message about %s %s", "foo", "bar")
PR Checklist
black --check yt/
isort . --check --diff
flake8 yt/
Extra information
This relies on the following code to detect the occurences:
If you're using vs code, you can also add a problem detector using