관리-도구
편집 파일: debug.cpython-311.pyc
� ^�Dgl � � � d dl Z d dlZd dlmZ d dlmZ d dlmZ d dlm Z d dlm Z G d� dej � � Zd � Z d � Zd� ZdS )� N)�utils)�Hub)�logger)�_client_init_debug)� LogRecordc � � e Zd Zd� ZdS )�_HubBasedClientFilterc � � t j d� � rdS t j }|�|j �|j j d S dS )NFT�debug)r �getr �current�client�options)�self�record�hubs �G/opt/imunify360/venv/lib64/python3.11/site-packages/sentry_sdk/debug.py�filterz_HubBasedClientFilter.filter sB � ��!�%�(�(� ��4��k���?�s�z�5��:�%�g�.�.��u� N)�__name__� __module__�__qualname__r � r r r r s# � � � � � �� � � � r r c �V � t j st � � t � � d S �N)r �handlers�configure_logger�configure_debug_hubr r r �init_debug_supportr s* � ��?� ����������r c �4 � t j t j � � } | � t j d� � � � t j | � � t j t j � � t j t � � � � d S )Nz$ [sentry] %(levelname)s: %(message)s)�logging� StreamHandler�sys�stderr�setFormatter� Formatterr � addHandler�setLevel�DEBUG� addFilterr )�_handlers r r r su � ��$�S�Z�0�0�H����'�+�,R�S�S�T�T�T� ��h���� �O�G�M�"�"�"� ��*�,�,�-�-�-�-�-r c �$ � d� } | t _ d S )Nc � � t j S r )r r r r r �_get_debug_hubz+configure_debug_hub.<locals>._get_debug_hub( s � ��{�r )r r. )r. s r r r &