Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make all logs in upgrade check debug #1655

Merged
merged 1 commit into from
Oct 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading