-
Notifications
You must be signed in to change notification settings - Fork 34
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
feedback.py: Don't use f-strings in logger #1622
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1622 +/- ##
==========================================
- Coverage 94.89% 94.88% -0.01%
==========================================
Files 60 60
Lines 2685 2681 -4
==========================================
- Hits 2548 2544 -4
Misses 137 137
|
9ebc4e3
to
205a805
Compare
/approve |
/retest |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tisnik The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
/hold What is wrong with fstrings? |
|
I understand that, but using fstrings is generally more convenient and readable. The performance impact of evaluating fstring when logging is set to a higher level is less than negligible. It is recommended by the logging, but the community is split on this topic. To me, readability has a better value here. Either way, we should be consistent in the logging. I see we have both approaches in our code (for different levels). This PR should unify it across the whole codebase and not just small part of it - this is unnecessarily atomic change, especially with our problems/waiting times on CI. |
205a805
to
24d8399
Compare
New changes are detected. LGTM label has been removed. |
we are fixing it everywhere as time constraints allow us |
Isn't it like 30 minutes at most to change it everywhere? |
@tisnik: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Description
feedback.py
: Don't use f-strings in loggerType of change