
                         b    S SK r Sq\ R                  " \5      r " S S5      r " S S5      rS rg)    Nc                       \ rS rSrS rSrg)BaseHistoryHandler   c                     [        S5      e)Nzemit())NotImplementedError)self
event_typepayloadsources       #lib/third_party/botocore/history.pyemitBaseHistoryHandler.emit   s    !(++     N)__name__
__module____qualname____firstlineno__r   __static_attributes__r   r   r   r   r      s    ,r   r   c                   6    \ rS rSrS rS rS rS rS	S jrSr	g)
HistoryRecorder   c                      SU l         / U l        g NF_enabled	_handlersr   s    r   __init__HistoryRecorder.__init__   s    r   c                     SU l         g )NTr   r   s    r   enableHistoryRecorder.enable   s	    r   c                     SU l         g r   r"   r   s    r   disableHistoryRecorder.disable    s	    r   c                 :    U R                   R                  U5        g N)r   append)r   handlers     r   add_handlerHistoryRecorder.add_handler#   s    g&r   c                     U R                   (       a9  U R                  (       a'  U R                   H  n UR                  XU5        M     g g g ! [         a    [        R                  SUSS9   M?  f = f)NzException raised in %s.T)exc_info)r   r   r   	Exceptionloggerdebug)r   r	   r
   r   r+   s        r   recordHistoryRecorder.record&   sb    ==T^^>>LLf= * ,= !  LL17T ! s   AA/.A/r   N)BOTOCORE)
r   r   r   r   r   r#   r&   r,   r3   r   r   r   r   r   r      s    '
r   r   c                  0    [         c
  [        5       q [         $ r)   )HISTORY_RECORDERr   r   r   r   get_global_history_recorderr8   3   s    *,r   )loggingr7   	getLoggerr   r1   r   r   r8   r   r   r   <module>r;      s9     			8	$, ,
 6r   