Skip to main content

log_retry

Macro log_retry 

Source
macro_rules! log_retry {
    ( $attempt:expr, $max_attempts:expr, $delay_ms:expr ) => { ... };
}
Expand description

Logs a retry attempt.

Records retry details including attempt number and delay.

§Arguments

  • attempt - Current attempt number
  • max_attempts - Maximum number of attempts
  • delay_ms - Delay before retry in milliseconds

§Examples

use api_xai::log_retry;

log_retry!( 2, 5, 1000 );