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

Usage Tracking: Only log messages when tracking is enabled #3748

Merged

Conversation

NishchayKarle
Copy link
Contributor

@NishchayKarle NishchayKarle commented Jan 15, 2025

Fix the bug where the DFK logs that it is entering usage tracking code in a way that suggests it is logging usage tracking data, even when turned off.

Changed Behaviour

The DFK will only log messages about usage tracking data being sent when usage tracking is enabled.

Fixes

Fixes #3740

Type of change

  • Bug fix

@benclifford
Copy link
Collaborator

I think I would approach this very differently: I'd move all the logging inside the usage tracking module, rather than expose more usage tracking internals outwards into the DFK. (the DFK historically knows too much stuff -- https://en.wikipedia.org/wiki/God_object -- and I'm slowly chipping away at that over the years)

@benclifford
Copy link
Collaborator

@yadudoc @khk-globus you might be interested in this test failure (which i'm going to ignore as it's not a required test pass here) https://github.com/Parsl/parsl/actions/runs/12867506582/job/35872290547?pr=3748#step:8:48

@benclifford benclifford changed the title Usage Tracking: Fix logging to only log messages when tracking is enabled Usage Tracking: Only log messages when tracking is enabled Jan 20, 2025
@benclifford benclifford added this pull request to the merge queue Jan 20, 2025
@benclifford
Copy link
Collaborator

@NishchayKarle i trimmed the title for this PR a bit

Merged via the queue into Parsl:master with commit 4e3e6b5 Jan 20, 2025
8 of 9 checks passed
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.

Usage tracking code logs that it is sending data even when it isn't
2 participants