| Server IP : 66.29.153.156 / Your IP : 216.73.217.75 Web Server : LiteSpeed System : Linux premium322.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64 User : lastyfjz ( 1521) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /./opt/cloudlinux/venv/lib/python3.11/site-packages/raven/conf/__pycache__/ |
Upload File : |
�
�|oi� � �2 � d Z ddlmZ ddlZdgZdZefd�ZdS )z�
raven.conf
~~~~~~~~~~
:copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
� )�absolute_importN�
setup_logging)�raven�gunicorn�southz
sentry.errorszdjango.request�dillc �( � t j � � }| j t t |j � � v rdS |� | � � |D ]C}t j |� � }d|_ |� t j � � � � �DdS )a�
Configures logging to pipe to Sentry.
- ``exclude`` is a list of loggers that shouldn't go to Sentry.
For a typical Python install:
>>> from raven.handlers.logging import SentryHandler
>>> client = Sentry(...)
>>> setup_logging(SentryHandler(client))
Within Django:
>>> from raven.contrib.django.handlers import SentryHandler
>>> setup_logging(SentryHandler())
Returns a boolean based on if logging was configured or not.
FT) �logging� getLogger� __class__�map�type�handlers�
addHandler� propagate�
StreamHandler)�handler�exclude�logger�logger_names �J/opt/cloudlinux/venv/lib64/python3.11/site-packages/raven/conf/__init__.pyr r s� � �&