From 504ef18eaf800922b7670cca588d0f2a4659b504 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Mon, 24 Feb 2025 12:26:20 +0100 Subject: just-mr setup: Remove warnings when fallback to network is available --- src/other_tools/root_maps/commit_git_map.cpp | 10 ++-------- src/other_tools/root_maps/foreign_file_git_map.cpp | 3 --- 2 files changed, 2 insertions(+), 11 deletions(-) (limited to 'src') diff --git a/src/other_tools/root_maps/commit_git_map.cpp b/src/other_tools/root_maps/commit_git_map.cpp index 2b89c819..f8a77d77 100644 --- a/src/other_tools/root_maps/commit_git_map.cpp +++ b/src/other_tools/root_maps/commit_git_map.cpp @@ -974,14 +974,8 @@ void EnsureCommit( return; } - // just serve should have made the tree available in - // the remote CAS, so log this attempt and revert to - // network - (*logger)(fmt::format("Tree {} marked as served, " - "but not found on remote", - root_tree_id), - /*fatal=*/false); - + // just serve did not make the tree available in + // the remote CAS, so fall back to network NetworkFetchAndSetPresentRoot( repo_info, repo_root, diff --git a/src/other_tools/root_maps/foreign_file_git_map.cpp b/src/other_tools/root_maps/foreign_file_git_map.cpp index fef07ca8..2ada3884 100644 --- a/src/other_tools/root_maps/foreign_file_git_map.cpp +++ b/src/other_tools/root_maps/foreign_file_git_map.cpp @@ -199,9 +199,6 @@ void HandleAbsentForeignFile(ForeignFileInfo const& key, /*fatal=*/true); return; } - (*logger)( - fmt::format("Failed to set up root via serve, continuing anyway"), - /*fatal=*/false); } else { (*logger)(fmt::format("Workspace root {} marked absent but no " -- cgit v1.2.3