Skip to content

Commit 2ae2a01

Browse files
runningcodeclaude
andcommitted
feat(build): Improve base_ref logging visibility
- Add debug logging when base_ref is found - Use info level logging when base_ref cannot be detected for CI visibility 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 1f1d297 commit 2ae2a01

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/commands/build/upload.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,11 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
182182
Some(base_ref_name)
183183
}
184184
Ok(None) => {
185-
debug!("No base branch reference found (no local branch points to merge-base)");
185+
info!("No base branch reference found (no local branch points to merge-base)");
186186
None
187187
}
188188
Err(e) => {
189-
debug!("Error getting base branch reference: {}", e);
189+
info!("Could not detect base branch reference: {}", e);
190190
None
191191
}
192192
})

src/utils/vcs.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ fn find_merge_base_ref(
296296
if let Ok(branch_commit) = branch.get().peel_to_commit() {
297297
if branch_commit.id() == merge_base_oid {
298298
if let Some(branch_name) = branch.name()? {
299+
debug!("Found base branch reference: {}", branch_name);
299300
return Ok(Some(branch_name.to_owned()));
300301
}
301302
}

0 commit comments

Comments
 (0)