Your IP : 18.191.84.179
B
��Yw) � @ s d Z ddlmZ yddlmZ W n ek
r8 dZY nX dZddlZddlZddl m
Z
mZmZ ddl
mZmZ dd lmZ dd
lmZ ddlmZ ddlmZ dd
lmZ ddlmZ ddlmZ ddlm Z m!Z! ddl"m#Z# e�$� Z%e%�&d�Z'ddd�Z(G dd� de)�ZdS )z�
raven.contrib.flask
~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
� )�absolute_import)�current_userFTN)�request�current_app�g)�got_request_exception�request_finished)�ClientDisconnected)�
setup_logging)�Client)�Sentry)�
SentryHandler)�urlparse)�
to_unicode)�get_headers�get_environ)�convert_options�logging_configuredc
C sF | f t |j|t|j�dg ��t|jg�B |j�dg �d|id�d��S )NZSENTRY_INCLUDE_PATHSZRAVEN_IGNORE_EXCEPTIONS�app)�dsnZ
include_pathsZignore_exceptions�extra)�defaults)r �config�set�getZimport_name)�
client_clsr r � r �D/opt/alt/python37/lib/python3.7/site-packages/raven/contrib/flask.py�make_client'