Skip to content

Commit

Permalink
Make all logs in upgrade check debug (#1655)
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmcculloch authored Oct 7, 2024
1 parent fb4e6bd commit 46c534e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/soroban-cli/src/upgrade_check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ pub async fn upgrade_check(quiet: bool) {
let current_version = crate::commands::version::pkg();

let mut stats = UpgradeCheck::load().unwrap_or_else(|e| {
tracing::error!("Failed to load upgrade check data: {e}");
tracing::debug!("Failed to load upgrade check data: {e}");
UpgradeCheck::default()
});

Expand All @@ -72,15 +72,15 @@ pub async fn upgrade_check(quiet: bool) {
};
}
Err(e) => {
tracing::error!("Failed to fetch stellar-cli info from crates.io: {e}");
tracing::debug!("Failed to fetch stellar-cli info from crates.io: {e}");
// Only update the latest check time if the fetch failed
// This way we don't spam the user with errors
stats.latest_check_time = now;
}
}

if let Err(e) = stats.save() {
tracing::error!("Failed to save upgrade check data: {e}");
tracing::debug!("Failed to save upgrade check data: {e}");
}
}

Expand Down

0 comments on commit 46c534e

Please sign in to comment.