Browse Source

[FIX] sentry: Fix SanitizeOdooCookiesProcessor after raven 6.4.0

Closes #1096
pull/1117/head
Naglis Jonaitis 7 years ago
committed by Naglis Jonaitis
parent
commit
39d27afa5e
  1. 2
      sentry/__manifest__.py
  2. 5
      sentry/logutils.py

2
sentry/__manifest__.py

@ -4,7 +4,7 @@
{
'name': 'Sentry',
'summary': 'Report Odoo errors to Sentry',
'version': '10.0.1.0.0',
'version': '10.0.1.0.1',
'category': 'Extra Tools',
'website': 'https://odoo-community.org/',
'author': 'Mohammed Barsi,'

5
sentry/logutils.py

@ -101,6 +101,9 @@ class SanitizeOdooCookiesProcessor(SanitizePasswordsProcessor):
Allows to sanitize sensitive Odoo cookies, namely the "session_id" cookie.
'''
FIELDS = frozenset([
# `FIELDS` was renamed to `KEYS` in raven 6.4.0.
# Keep `FIELDS` for backwards compatibility.
# See also issue #1096 on OCA/server-tools.
KEYS = FIELDS = frozenset([
'session_id',
])
Loading…
Cancel
Save