https://t.me/RX1948
Server : LiteSpeed
System : Linux host 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
User : idnco5810 ( 1093)
PHP Version : 8.2.29
Disable Function : NONE
Directory :  /lib/python3/dist-packages/uaclient/cli/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/uaclient/cli/__pycache__/collect_logs.cpython-310.pyc
o

��Jhj�
@s�ddlZddlZddlZddlZddlmZddlmZddlm	Z	m
Z
mZddlm
Z
ddlmZdZe�ee��Zdd	�Zed
ejejdee
je
e	dd
ejd�gd�gd�ZdS)�N)�messages)�collect_logs)�ProArgument�ProArgumentGroup�
ProCommand)�HelpCategory)�replace_top_level_logger_namezpro_logs.tar.gzcKs|jpt}t���u}t||�zt�|d��}|j|dd�Wd�n1s(wYWnGtyL}zt	�
|�WYd}~Wd�dSd}~wtyu}zt	�
|�tt
jj|d�tjd�WYd}~Wd�dSd}~wwWd�dS1s�wYdS)Nzx:gzzlogs/)�arcname�)�filename)�filer)�output�PRO_COLLECT_LOGS_FILE�tempfile�TemporaryDirectoryr�tarfile�open�add�PermissionError�LOG�error�FileExistsError�printr�E_FILE_ALREADY_EXISTS�format�sys�stderr)�args�cfg�kwargs�output_file�
output_dir�results�e�r$�;/usr/lib/python3/dist-packages/uaclient/cli/collect_logs.py�action_collect_logss<


��

��
��
���
��r&zcollect-logsTz--outputz-o)�
short_name�help)�	arguments)r(�description�preserve_description�action�
help_category�argument_groups)�loggingrrr�uaclientr�uaclient.actionsr�uaclient.cli.commandsrrr�uaclient.cli.parserr�
uaclient.utilrr�	getLogger�__name__rr&�CLI_ROOT_COLLECT_LOGS�CLI_COLLECT_LOGS_DESC�TROUBLESHOOT�CLI_COLLECT_LOGS_OUTPUT�collect_logs_commandr$r$r$r%�<module>s:����
�

https://t.me/RX1948 - 2025