ó ¿öYc@@s{dZddlmZddlZddlZddlmZddlmZddl m Z dej fd„ƒYZ dS( sž raven.contrib.webpy ~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2013 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. i(tabsolute_importN(t setup_logging(t SentryHandler(tget_data_from_requesttSentryApplicationcB@s>eZdZed„Zd„Zd„Zd„Zd„ZRS(sª Web.py application for Sentry. >>> sentry = Sentry(client, mapping=urls, fvars=globals()) Automatically configure logging:: >>> sentry = Sentry(client, logging=True, mapping=urls, fvars=globals()) Capture an exception:: >>> try: >>> 1 / 0 >>> except ZeroDivisionError: >>> sentry.captureException() Capture a message:: >>> sentry.captureMessage('hello, world!') cK@sH||_||_|jr1tt|jƒƒntjj||dS(N(tclienttloggingRRtwebt applicationt__init__(tselfRRtkwargs((sM/opt/alt/python27/lib/python2.7/site-packages/raven/contrib/webpy/__init__.pyR )s    c O@s6|jjd|jdƒdtƒdi|d6ƒdS(Ntexc_infotdatatextratapp(RtcaptureExceptiontgetR(R targsR ((sM/opt/alt/python27/lib/python2.7/site-packages/raven/contrib/webpy/__init__.pythandle_exception0s   cC@sEytjj|ƒSWn*tk r@|jdtjƒƒ‚nXdS(NR (RRthandlet ExceptionRtsysR (R ((sM/opt/alt/python27/lib/python2.7/site-packages/raven/contrib/webpy/__init__.pyR9s  cO@sS|jstdƒ‚|jdƒ}|dkr@tƒ|ds