added debugging
This commit is contained in:
@@ -235,15 +235,15 @@ async fn register_with_server(base_url: &str) -> Result<(i32, String), Box<dyn E
|
|||||||
let status = resp.status();
|
let status = resp.status();
|
||||||
let text = resp.text().await.unwrap_or_default();
|
let text = resp.text().await.unwrap_or_default();
|
||||||
println!(
|
println!(
|
||||||
"⚠️ Registration failed ({}): {} (will retry in 30 seconds)",
|
"⚠️ Registration failed ({}): {} (will retry in 10 seconds)",
|
||||||
status, text
|
status, text
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
println!("⚠️ Registration error: {} (will retry in 30 seconds)", err);
|
println!("⚠️ Registration error: {} (will retry in 10 seconds)", err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
sleep(Duration::from_secs(30)).await;
|
sleep(Duration::from_secs(10)).await;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user