fn log_retry(error: &TransportError, attempt: u32)
Log a retryable failure before the attempt that follows it.