| Server IP : 93.115.150.27 / Your IP : 216.73.216.221 Web Server : LiteSpeed System : Linux host2.azar.host 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64 User : dorfakkh ( 1797) PHP Version : 8.1.34 Disable Function : show_source, system, passthru, exec, popen, proc_open, mail MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python37/lib/python3.7/site-packages/raven/conf/__pycache__/ |
Upload File : |
B
��Y � @ s2 d Z ddlmZ ddlZdgZdZefdd�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)�ravenZgunicornZsouthz
sentry.errorszdjango.requestc C sX t �� }| jtt|j�krdS |�| � x*|D ]"}t �|�}d|_|�t �� � q.W dS )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_name� r �D/opt/alt/python37/lib/python3.7/site-packages/raven/conf/__init__.pyr s
)�__doc__�
__future__r r �__all__ZEXCLUDE_LOGGER_DEFAULTSr r r r r �<module> s