Hacked By AnonymousFox
�
�tg
� � � d dl Z d dlmZ d dlmZmZ d dlmZ d dlm Z m
Z
d dlmZm
Z
d dlmZ d dlmZ d d lmZ d d
lmZ G d� de� � Z G d
� de� � ZdS )� N)�RequestException)�cpapi�get_lve_version)�get_cl_edition_readable)�get_rhn_systemid_value�get_username)�get_ip_addr�get_hostname)�UNKNOWN_CP_NAME)�Client)�RequestsHTTPTransport)�get_pkg_versionc � � � e Zd Z� fd�Z� xZS )�SafeRequestsHTTPTransportc �r �� t � � � |||� � d S # t $ r Y d S w xY w)N)�super�sendr )�self�url�data�headers� __class__s ���/builddir/build/BUILDROOT/alt-python27-cllib-3.4.16-1.el8.cloudlinux.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/clsentry/client.pyr zSafeRequestsHTTPTransport.send sL �� � ��G�G�L�L��d�G�,�,�,�,�,��� � � �
�D�D� ���s �#( �
6�6)�__name__�
__module__�__qualname__r �
__classcell__�r s @r r r s8 �� � � � � �� � � � � � � � � r c �8 � � e Zd ZdZ� fd�Zed� � � Z� xZS )�UserlandClientz=
Userland's sentry client with some common settings.
c � �� |� | � � � t gddgddddt d�� � t � � j |fi |�� d S )N�sentry�ravenTi� �d )z$clsentry.processors.UserlandSanitize)�tags�ignore_exceptions�
exclude_paths�auto_log_stacks�string_max_length�list_max_length�
processors� transport)�update�_get_user_tags�KeyboardInterruptr r �__init__)r �dsn�optionsr s �r r1 zUserlandClient.__init__% s� �� �����'�'�)�)�!�"� ��� $�!%�"�D� 3�
�
� � � �"