관리-도구
편집 파일: __init__.cpython-311.pyc
� �܋fd � �p � d Z ddlmZ ddlZddlZddlmZ ddlmZ ddl m Z G d� dej � � ZdS ) z� raven.contrib.webpy ~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2013 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. � )�absolute_importN)� setup_logging)� SentryHandler)�get_data_from_requestc �2 � e Zd ZdZd d�Zd� Zd� Zd� Zd� ZdS ) �SentryApplicationa� 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!') Fc � � || _ || _ | j r!t t | j � � � � t j j | fi |�� d S )N)�client�loggingr r �web�application�__init__)�selfr r �kwargss �m/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/raven/contrib/webpy/__init__.pyr zSentryApplication.__init__) sS � ��������<� 6��-���4�4�5�5�5��� ��0�0��0�0�0�0�0� c � � | j � |� d� � t � � d| i�� � d S )N�exc_info�app)r �data�extra)r �captureException�getr )r �argsr s r �handle_exceptionz"SentryApplication.handle_exception0 sM � ���$�$��Z�Z� �+�+�&�(�(��t�� %� � � � � r c � � t j � | � � S # t $ r) | � t j � � �� � � w xY w)N)r )r r �handle� Exceptionr �sysr )r s r r zSentryApplication.handle9 sX � � ��?�)�)�$�/�/�/��� � � ��!�!�3�<�>�>�!�:�:�:�� ���s �! �3Ac � � | j s J d� � �|� d� � }|�t � � |d<