관리-도구
편집 파일: debug.cpython-38.pyc
U �Mg� � @ sv d dl Z d dlZd dlZd dlmZ d dlmZ d dlmZ d dlm Z G dd� dej �Zdd � Zd d� Z dd � ZdS )� N)� get_client)�_client_init_debug)�logger)� LogRecordc @ s e Zd Zdd� ZdS )�_DebugFilterc C s t �d�rdS t� jd S )NFT�debug)r �getr �options)�self�record� r �>/opt/hc_python/lib/python3.8/site-packages/sentry_sdk/debug.py�filter s z_DebugFilter.filterN)�__name__� __module__�__qualname__r r r r r r s r c C s t jst� d S )N)r �handlers�configure_loggerr r r r �init_debug_support s r c C sB t �tj�} | �t �d�� t�| � t�t j � t� t� � d S )Nz$ [sentry] %(levelname)s: %(message)s)�logging� StreamHandler�sys�stderr�setFormatter� Formatterr � addHandler�setLevel�DEBUG� addFilterr )Z_handlerr r r r s r c C s t jdtdd� d S )NzOconfigure_debug_hub is deprecated. Please remove calls to it, as it is a no-op.� )� stacklevel)�warnings�warn�DeprecationWarningr r r r �configure_debug_hub# s �r$ )r r r! Z sentry_sdkr Zsentry_sdk.clientr Zsentry_sdk.utilsr r �Filterr r r r$ r r r r �<module> s