a
   W`SR                   @   s   d Z ddlZedZzddlmZ W n$ eyJ   G dd dejZY n0 ee  dag dZ	e
 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S )aL  
websocket - WebSocket client library for Python

Copyright (C) 2010 Hiroki Ohtani(liris)

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with this library; if not, write to the Free Software
    Foundation, Inc., 51 Franklin Street, Fifth Floor,
    Boston, MA  02110-1335  USA

    NZ	websocket)NullHandlerc                   @   s   e Zd Zdd ZdS )r   c                 C   s   d S N )selfrecordr   r   6/usr/lib/python3.9/site-packages/websocket/_logging.pyemit   s    zNullHandler.emitN)__name__
__module____qualname__r   r   r   r   r   r      s   r   F)	enableTracedumperrorwarningdebugtraceisEnabledForErrorisEnabledForDebugisEnabledForTracec                 C   s"   | a | rt| ttj dS )zl
    turn on/off the traceability.

    traceable: boolean value. if set True, traceability is enabled.
    N)_traceEnabled_logger
addHandlerZsetLevelloggingDEBUG)Z	traceableZhandlerr   r   r   r   (   s    
r   c                 C   s.   t r*td|  d  t| td d S )Nz--- z ---z-----------------------r   r   r   )titlemessager   r   r   r   4   s    
r   c                 C   s   t |  d S r   )r   r   msgr   r   r   r   ;   s    r   c                 C   s   t |  d S r   )r   r   r   r   r   r   r   ?   s    r   c                 C   s   t |  d S r   )r   r   r   r   r   r   r   C   s    r   c                 C   s   t rt|  d S r   r   r   r   r   r   r   G   s    r   c                   C   s   t tjS r   )r   isEnabledForr   ZERRORr   r   r   r   r   L   s    r   c                   C   s   t tjS r   )r   r   r   r   r   r   r   r   r   P   s    r   c                   C   s   t S r   )r   r   r   r   r   r   S   s    r   )__doc__r   Z	getLoggerr   r   ImportErrorZHandlerr   r   __all__ZStreamHandlerr   r   r   r   r   r   r   r   r   r   r   r   r   <module>   s$   
