Skip to content

Commit 491d9ac

Browse files
runningcodeclaude
andcommitted
fix: lower log level for missing base ref on main/master builds (EME-369)
Changes the logging level from warn to info when failing to detect base branch reference on main/master branch builds. This reduces noise in build logs for these common scenarios while maintaining warn level for other branches where missing base ref may indicate configuration issues. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 5b1fb22 commit 491d9ac

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/commands/build/upload.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,14 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
192192
Some(base_ref_name)
193193
}
194194
Err(e) => {
195-
warn!("Could not detect base branch reference: {}", e);
195+
// Lower log level for main/master branch builds
196+
if head_ref.as_deref() == Some("main")
197+
|| head_ref.as_deref() == Some("master")
198+
{
199+
info!("Could not detect base branch reference: {}", e);
200+
} else {
201+
warn!("Could not detect base branch reference: {}", e);
202+
}
196203
None
197204
}
198205
})

0 commit comments

Comments
 (0)