-
Notifications
You must be signed in to change notification settings - Fork 108
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
Minor logging cleanup #3598
Minor logging cleanup #3598
Conversation
Minimize cache logging: details were useful when cache management first went in, but are now disruptive during ops review.
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.
Looks fine; two suggestions.
@dataclass | ||
class GoalCheck: | ||
"""Report goal check""" | ||
|
||
reached: bool | ||
usage: shutil._ntuple_diskusage |
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.
Just for fun, you could add a method to this class which would save you from having to reference reached
explicitly:
def __bool__(self):
return self.reached
then, the change to line 1635 could be reverted back to just:
if reached_goal():
Analogously line 1658. (For line 1665, you would have to coerce it with bool()
. 🦐)
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.
👍
* Minor logging cleanup Minimize cache logging: details were useful when cache management first went in, but are now disruptive during ops review.
Minimize cache logging: details were useful when cache management first went in, but are now disruptive during ops review.