Skip to content

Commit

Permalink
chore(backend): Reduce verbosity of git branch lookups (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
sasa-tomic authored Apr 5, 2024
1 parent 3f433e9 commit caec95f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions rs/ic-management-backend/src/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,12 @@ impl RegistryState {
match ic_repo.get_branches_with_commit(commit_hash) {
// For each commit get a list of branches that have the commit
Ok(branches) => {
info!("Found {} branches for git rev: {}", branches.len(), commit_hash);
debug!("Commit {} ==> branches: {}", commit_hash, branches.join(", "));
debug!(
"Git rev {} ==> {} branches: {}",
commit_hash,
branches.len(),
branches.join(", ")
);
for branch in branches.into_iter().sorted() {
match RE.captures(&branch) {
Some(capture) => {
Expand Down Expand Up @@ -395,8 +399,8 @@ impl RegistryState {
}
None => {
if branch != "master" && branch != "HEAD" {
warn!(
"branch {} for git rev {} does not match RC regex",
debug!(
"Git rev {}: branch {} does not match the RC regex",
&commit_hash, &branch
);
}
Expand Down

0 comments on commit caec95f

Please sign in to comment.