Improved bugsnag reporting

- Include release stage, which should be 'production' or 'development',
  and gets postfixed by '-debug' when running in debug mode.
- Properly logging remote IP address when proxied through HAProxy;
- Log user ID, email, username, roles, and capabilities;
- Remove authentication tokens from logged session;
- Log request data and JSON separately.
- Added request endpoint.
This commit is contained in:
2017-09-28 13:28:12 +02:00
parent ec42d033b3
commit 6a541e0662
3 changed files with 59 additions and 2 deletions

View File

@@ -63,6 +63,7 @@ GOOGLE_SITE_VERIFICATION = ''
ADMIN_USER_GROUP = '5596e975ea893b269af85c0e'
SUBSCRIBER_USER_GROUP = '5596e975ea893b269af85c0f'
BUGSNAG_API_KEY = ''
BUGSNAG_RELEASE_STAGE = 'development'
ALGOLIA_USER = '-SECRET-'
ALGOLIA_API_KEY = '-SECRET-'