filters: Don't include realm_counts/installation_counts in errors.

This avoids unnecessarily long error emails for these.
This commit is contained in:
Tim Abbott 2019-04-30 14:10:59 -07:00
parent 272ed90685
commit 98a1e340ad
1 changed files with 2 additions and 1 deletions

View File

@ -9,7 +9,8 @@ class ZulipExceptionReporterFilter(SafeExceptionReporterFilter):
def get_post_parameters(self, request: HttpRequest) -> Dict[str, Any]:
filtered_post = SafeExceptionReporterFilter.get_post_parameters(self, request).copy()
filtered_vars = ['content', 'secret', 'password', 'key', 'api-key', 'subject', 'stream',
'subscriptions', 'to', 'csrfmiddlewaretoken', 'api_key']
'subscriptions', 'to', 'csrfmiddlewaretoken', 'api_key',
'realm_counts', 'installation_counts']
for var in filtered_vars:
if var in filtered_post: