Skip to content

Commit 6d5dc18

Browse files
runningcodeclaude
andcommitted
fix: lower log level for missing base ref detection (EME-369)
Changes the logging level from warn to info when failing to detect base branch reference in build uploads. This reduces noise in build logs for common scenarios including detached HEAD states in PRs and main/master branch builds where base ref detection failures are expected. Also removes --log-level=error from test to allow info messages to be seen. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 5b1fb22 commit 6d5dc18

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/commands/build/upload.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ 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+
info!("Could not detect base branch reference: {}", e);
196196
None
197197
}
198198
})

tests/integration/_cases/build/build-upload-ipa.trycmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
```
2-
$ sentry-cli build upload tests/integration/_fixtures/build/ipa.ipa --head-sha test_head_sha --log-level=error
2+
$ sentry-cli build upload tests/integration/_fixtures/build/ipa.ipa --head-sha test_head_sha
33
? success
44
Successfully uploaded 1 file to Sentry
55
- tests/integration/_fixtures/build/ipa.ipa (http[..]/wat-org/preprod/wat-project/some-text-id)

0 commit comments

Comments
 (0)