minor fixes on logs and cli

This commit is contained in:
ghe0 2025-07-02 03:26:18 +03:00
parent d47121ceb6
commit 99470dbac3
Signed by: ghe0
GPG Key ID: 451028EE56A0FBB4
4 changed files with 5 additions and 5 deletions

@ -360,7 +360,7 @@ fn clap_cmd() -> Command {
Arg::new("disk")
.long("disk")
.default_value("10")
.value_parser(clap::value_parser!(u32).range(5..500))
.value_parser(clap::value_parser!(u32).range(5..4000))
.help("disk size in GiB")
)
.arg(

@ -318,12 +318,12 @@ impl Config {
"localhost" => ("https://localhost:31337".to_string(), "staging-brain".to_string()),
"staging" => {
let url = BRAIN_STAGING.to_string();
log::info!("Using staging brain URL: {url}");
log::debug!("Using staging brain URL: {url}");
(url, "staging-brain".to_string())
}
_ => {
let url = BRAIN_TESTING.to_string();
log::info!("Using testnet brain URL: {url}");
log::debug!("Using testnet brain URL: {url}");
(url, "testnet-brain".to_string())
}
}

@ -212,7 +212,7 @@ impl Request {
locked_nano: nanocredits,
};
debug!(
info!(
"Node {} can offer the VM at {} nanocredits for {} hours. Spec: {} vCPUs, {} MiB mem, {} MiB disk.",
node.ip, brain_req.locked_nano, self.hours, brain_req.vcpus, brain_req.memory_mib, brain_req.disk_size_mib
);

@ -94,7 +94,7 @@ impl crate::HumanOutput for VmNodeListResp {
async fn client() -> Result<BrainVmCliClient<Channel>, Error> {
let default_brain_url = Config::get_brain_info().0;
info!("brain_url: {default_brain_url}");
debug!("brain_url: {default_brain_url}");
Ok(BrainVmCliClient::new(Config::connect_brain_channel(default_brain_url).await?))
}