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

only log events in cache.py when --log-cache-events is set #4369

Merged
merged 1 commit into from
Nov 30, 2021

Conversation

emmyoop
Copy link
Member

@emmyoop emmyoop commented Nov 30, 2021

Restore old logger functionality to exclude caching logs unless explicitly set with the --log-cache-events flag.

Checklist

  • I have signed the CLA
  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • I have updated the CHANGELOG.md and added information about my change

@cla-bot cla-bot bot added the cla:yes label Nov 30, 2021
@emmyoop emmyoop added the test all run tests for all python versions + systems label Nov 30, 2021
@nathaniel-may nathaniel-may mentioned this pull request Nov 30, 2021
26 tasks
Copy link
Contributor

@nathaniel-may nathaniel-may left a comment

Choose a reason for hiding this comment

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

Looks great!

Comment on lines +41 to +43
class Cache():
# Events with this class will only be logged when the `--log-cache-events` flag is passed
pass
Copy link
Contributor

Choose a reason for hiding this comment

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

Perfect! Exactly what I would have done.

@emmyoop emmyoop merged commit d75ed96 into main Nov 30, 2021
@emmyoop emmyoop deleted the er/verbose-cache-logging branch November 30, 2021 21:17
iknox-fa pushed a commit that referenced this pull request Feb 8, 2022
flag is --log-cache-events

automatic commit by git-black, original commits:
  d75ed96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla:yes test all run tests for all python versions + systems
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants