
    Hcg                         d dl Z d dlmZ e j                  r
d dlZd dlmZ ddZddd	ede j                  dgdf   fd
Z	y)    N)_utils)RetryCallStater   returnc                      y)z'Before call strategy that does nothing.N )retry_states    J/var/www/html/bid-api/venv/lib/python3.12/site-packages/tenacity/before.pybefore_nothingr
      s        loggerzlogging.Logger	log_levelc                      d fd}|S )z:Before call strategy that logs to some logger the attempt.c           	          | j                   d}nt        j                  | j                         }j                  d| dt        j                  | j
                         d       y )Nz	<unknown>zStarting call to 'z', this is the z time calling it.)fnr   get_callback_namelog
to_ordinalattempt_number)r   fn_namer   r   s     r	   log_itzbefore_log.<locals>.log_it$   sa    >>!!G..{~~>G

 	 *!,,[-G-GHIIZ\	
r   r   r   r   Nr   )r   r   r   s   `` r	   
before_logr      s    


 Mr   r   )
typingtenacityr   TYPE_CHECKINGloggingr   r
   intCallabler   r   r   r	   <module>r      sP   "  	'2),__&'-.r   