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

Sentry #56

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Sentry #56

wants to merge 8 commits into from

Conversation

dan100110
Copy link
Contributor

No description provided.

@dan100110 dan100110 requested a review from mbsimonovic January 13, 2022 22:30
Comment on lines +83 to +97
class RequestFilter(logging.Filter):

# def __init__(self, methods=None):
# self.methods = methods or []
# super().__init__()

def filter(self, record):
# TODO redact sensitive data
return True
# if hasattr(record, 'method'):
# if record.method in self.methods:
# return True
# else:
# return True

Copy link
Contributor

Choose a reason for hiding this comment

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

you can remove this one, my idea was to redact some sensitive data (tokens, passwords, ...), but didn't have time to implement it

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