Mercurial > kallithea
diff rhodecode/config/middleware.py @ 3098:a5f0bc867edc rhodecode-0.0.1.5.0
merge with beta
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 13 Dec 2012 22:54:21 +0100 |
parents | 82a88013a3fd dbe3cfb81446 |
children | 3563bb7b4b82 |
line wrap: on
line diff
--- a/rhodecode/config/middleware.py Tue Oct 09 00:57:07 2012 +0200 +++ b/rhodecode/config/middleware.py Thu Dec 13 22:54:21 2012 +0100 @@ -53,6 +53,13 @@ if asbool(full_stack): + from rhodecode.lib.middleware.sentry import Sentry + from rhodecode.lib.middleware.errormator import Errormator + if Errormator: + app = Errormator(app, config) + elif Sentry: + app = Sentry(app, config) + # Handle Python exceptions app = ErrorHandler(app, global_conf, **config['pylons.errorware'])