관리-도구
편집 파일: base_app.cpython-311.pyc
� b��f� � �R � d dl Z d dlZd dlZd dlmZ d dlmZ d dlmZm Z defd�Z dS )� N)�Callable)�capture_exception)� XRayError�XRayManagerExit�funcc �F � � t j � � � � fd�� � }|S )z� Basic logic of an X-Ray application: - catch all known errors and print them as basic cloudlinux error messages c �J �� �| i |��S # t $ rH}t j d|� � t |� � t j |j � � Y d }~d S d }~wt $ r=}t |� � t |� � t j d� � Y d }~d S d }~ww xY w)NzExiting on exception %s� ) r �logging�info�print�sys�exit�exitcoder r )�args�kwargs�er s ��R/opt/cloudlinux/venv/lib64/python3.11/site-packages/xray/console_utils/base_app.py�wrapperzapp.<locals>.wrapper s� �� � ��4��(��(�(�(��� !� !� !��L�2�A�6�6�6��!�H�H�H��H�Q�Z� � � � � � � � � ������ � � ��!�H�H�H��a� � � ��H�Q�K�K�K�K�K�K�K�K�K����� ���s � � B"�=A� B"�%2B�B")� functools�wraps)r r s ` r �appr s: �� � �_�T��� � � � � �� � �N� )r r r �typingr � sentry_sdkr �xray.internal.exceptionsr r r � r r �<module>r s� �� � � � � ���� � � � � � � � � � � (� (� (� (� (� (� ?� ?� ?� ?� ?� ?� ?� ?��h� � � � � � r