Homec4science

logging: error reporting refactoring

Authored by Lars Holm Nielsen <lars.holm.nielsen@cern.ch> on Apr 25 2014, 17:02.

Description

logging: error reporting refactoring

  • Refactors register_exception to use Flask application logging, and split functionality into a Python logging handler and formatter.
  • Adds support for logging exceptions to Sentry.
  • Disables email error reporting when in debug mode.
  • Deprecates certain error logging function by moving them to the module where they are used. This is done to create a much simpler API.
  • Fixes PEP8 errors.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>

Details

Committed
kuncarJun 4 2014, 16:05
Parents
R3600:9f8716897847: celery: test case helper
Branches
Unknown
Tags
Unknown

Event Timeline

Jiri Kuncar <jiri.kuncar@cern.ch> committed R3600:d38502c574b5: logging: error reporting refactoring (authored by Lars Holm Nielsen <lars.holm.nielsen@cern.ch>).Jun 4 2014, 16:05