Skip to content
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

Merged
merged 2 commits into from
Jan 18, 2024
Merged

Conversation

dbutenhof
Copy link
Member

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.
@dbutenhof dbutenhof added Server Operations Related to operation and monitoring of a service labels Jan 16, 2024
@dbutenhof dbutenhof requested a review from webbnh January 16, 2024 18:55
@dbutenhof dbutenhof self-assigned this Jan 16, 2024
webbnh
webbnh previously approved these changes Jan 16, 2024
Copy link
Member

@webbnh webbnh left a 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.

Comment on lines +1556 to +1561
@dataclass
class GoalCheck:
"""Report goal check"""

reached: bool
usage: shutil._ntuple_diskusage
Copy link
Member

@webbnh webbnh Jan 16, 2024

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(). 🦐)

lib/pbench/server/cache_manager.py Outdated Show resolved Hide resolved
Copy link
Member

@webbnh webbnh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@dbutenhof dbutenhof merged commit 58acfe9 into distributed-system-analysis:main Jan 18, 2024
4 checks passed
@dbutenhof dbutenhof deleted the logclean branch January 18, 2024 20:54
@webbnh webbnh mentioned this pull request Jan 18, 2024
webbnh pushed a commit that referenced this pull request Jan 19, 2024
* Minor logging cleanup

Minimize cache logging: details were useful when cache management first went
in, but are now disruptive during ops review.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Operations Related to operation and monitoring of a service Server
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants