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

Move all monitoring.py logging to lazy format style #3673

Merged
merged 2 commits into from
Nov 7, 2024

Conversation

benclifford
Copy link
Collaborator

The is based on a review comment from @khk-globus on PR #3672

Changed Behaviour

logging formatting should come out the same but maybe not

Type of change

  • Code maintenance/cleanup

The is based on a review comment from @khk-globus on PR #3672
Copy link
Collaborator

@khk-globus khk-globus left a comment

Choose a reason for hiding this comment

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

Heh, you're so disciplined! Nothing in piecemeal fashion for you ...

When I'm fairly confident the log will be emitted somewhere, I often will stay with the "format now" approach — my thinking being that there is no sense in passing extra pointers and/or data structures around in memory. In this case, that would likely mean that the .info(), .error(), and .exception() calls don't need to be updated. Meh.

No biggie, just observing

parsl/monitoring/monitoring.py Outdated Show resolved Hide resolved
@benclifford
Copy link
Collaborator Author

When I'm fairly confident the log will be emitted somewhere, I often will stay with the "format now" approach

yeah I am pretty fine with that, but I find having two different styles a bit grating.

@benclifford benclifford added this pull request to the merge queue Nov 7, 2024
Merged via the queue into master with commit 07f7865 Nov 7, 2024
7 checks passed
@benclifford benclifford deleted the benc-monitoring-log-lazy branch November 7, 2024 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants