관리-도구
편집 파일: trytond.cpython-311.pyc
� �܋f� � � � d dl Zd dlZd dlZd dlZd dlmZ d dlmZ d dl m Z erd dlmZ G d� dej j � � ZdS )� N)� TYPE_CHECKING)�TrytonException)�app)�Anyc �. � e Zd ZdZd� Zed� � � ZdS )�TrytondWSGIIntegration�trytond_wsgic � � d S �N� )�selfs �p/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/sentry_sdk/integrations/trytond.py�__init__zTrytondWSGIIntegration.__init__ s � ��� c � �� t j j � t j � � t _ d� �t t d� � rt j �fd�� � } d S t j � �� � d S )Nc �. � t j j j }|� t � � �d S t | t � � rd S |j }t j � | |j ddd��� � \ }}|� ||�� � d S )N�trytondF)�type�handled)�client_options� mechanism)�hint) � sentry_sdk�hub�Hub�current�get_integrationr � isinstancer �client�utils�event_from_exception�options� capture_event)�er r �eventr s r � error_handlerz8TrytondWSGIIntegration.setup_once.<locals>.error_handler s� � ��.�$�,�C��"�"�#9�:�:�B����A��/�/� 4��� ���(�.�C�C��#)�>�'0�U�C�C� D� � ���t� �!�!�%�d�!�3�3�3�3�3r r&