Ejemplo n.º 1
0
 def log_it(retry_state):
     logger.log(
         log_level,
         "Starting call to '%s', this is the %s time calling it.",
         _utils.get_callback_name(retry_state.fn),
         _utils.to_ordinal(retry_state.attempt_number),
     )
Ejemplo n.º 2
0
 def log_it(retry_state):
     logger.log(
         log_level,
         log_tpl,
         _utils.get_callback_name(retry_state.fn),
         retry_state.seconds_since_start,
         _utils.to_ordinal(retry_state.attempt_number),
     )