o
    ¹ië  ã                   @   sÀ   d dl Z 	 e  d¡Zzd dl mZ W n ey$   G dd„ de jƒZY nw e eƒ ¡ dag d¢Ze  	¡ dfd	d
„Z
dd„ Zdd„ Zdd„ Zdd„ Zdd„ Zdd„ Zdd„ Zdd„ Zdd„ ZdS )é    NÚ	websocket)ÚNullHandlerc                   @   s   e Zd Zdd„ ZdS )r   c                 C   s   d S ©N© )ÚselfÚrecordr   r   úM/var/www/edux/Edux_v2/venv/lib/python3.10/site-packages/websocket/_logging.pyÚemit   ó   zNullHandler.emitN)Ú__name__Ú
__module__Ú__qualname__r	   r   r   r   r   r      s    r   F)	ÚenableTraceÚdumpÚerrorÚwarningÚdebugÚtraceÚisEnabledForErrorÚisEnabledForDebugÚisEnabledForTraceÚDEBUGc                 C   s*   | a | rt |¡ t tt|ƒ¡ dS dS )z‹
    Turn on/off the traceability.

    Parameters
    ----------
    traceable: bool
        If set to True, traceability is enabled.
    N)Ú_traceEnabledÚ_loggerÚ
addHandlerÚsetLevelÚgetattrÚlogging)Ú	traceableÚhandlerÚlevelr   r   r   r   &   s
   

þr   c                 C   s2   t rt d|  d ¡ t |¡ t d¡ d S d S )Nz--- z ---z-----------------------©r   r   r   )ÚtitleÚmessager   r   r   r   6   s
   
ýr   c                 C   ó   t  | ¡ d S r   )r   r   ©Úmsgr   r   r   r   =   ó   r   c                 C   r$   r   )r   r   r%   r   r   r   r   A   r'   r   c                 C   r$   r   )r   r   r%   r   r   r   r   E   r'   r   c                 C   r$   r   )r   Úinfor%   r   r   r   r(   I   r'   r(   c                 C   s   t r	t | ¡ d S d S r   r!   r%   r   r   r   r   M   s   ÿr   c                   C   ó   t  tj¡S r   )r   ÚisEnabledForr   ÚERRORr   r   r   r   r   R   ó   r   c                   C   r)   r   )r   r*   r   r   r   r   r   r   r   V   r,   r   c                   C   s   t S r   )r   r   r   r   r   r   Z   r
   r   )r   Ú	getLoggerr   r   ÚImportErrorÚHandlerr   r   Ú__all__ÚStreamHandlerr   r   r   r   r   r(   r   r   r   r   r   r   r   r   Ú<module>   s*    
ÿ