Commit 2229943
fix: lower log level for missing base ref detection (EME-369) (#2813)
## Summary
Lowers the logging level from `warn` to `info` when failing to detect
base branch reference in build uploads.
## Why
The warning message confuses users as it appears even in cases where we
don't expect there to be a base reference (detached HEAD states,
main/master builds, etc.). Changing to info level keeps the message
available for debugging while hiding it by default.
## Changes
- Changed `warn!` to `info!` in base ref detection error handling
- Removed `--log-level=error` from build upload tests to ensure info
messages work correctly
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Lower base-ref detection logging to info and update build upload
trycmd tests to remove log-level flag and assert experimental warning
output.
>
> - **Build upload**:
> - Lower log level from `warn!` to `info!` when failing to detect base
branch reference in `src/commands/build/upload.rs`.
> - **Tests**:
> - Update `trycmd` cases (`tests/integration/_cases/build/*`) to remove
`--log-level=error` and expect the experimental warning line in output.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
a0961a1. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
Co-authored-by: Claude <noreply@anthropic.com>1 parent 087d7f8 commit 2229943
File tree
5 files changed
+9
-5
lines changed- src/commands/build
- tests/integration/_cases/build
5 files changed
+9
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
| 195 | + | |
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
0 commit comments