added debugging

This commit is contained in:
2025-07-30 01:07:08 +02:00
parent d00ec2d998
commit 42101478d2

View File

@@ -235,15 +235,15 @@ async fn register_with_server(base_url: &str) -> Result<(i32, String), Box<dyn E
let status = resp.status();
let text = resp.text().await.unwrap_or_default();
println!(
"⚠️ Registration failed ({}): {} (will retry in 30 seconds)",
"⚠️ Registration failed ({}): {} (will retry in 10 seconds)",
status, text
);
}
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;
}
}