Skip to content

Tidy up cURL error messages in metrics cases#2508

Merged
cjreynol merged 2 commits intogoogle:mainfrom
cjreynol:tidy_up_error_message
May 5, 2026
Merged

Tidy up cURL error messages in metrics cases#2508
cjreynol merged 2 commits intogoogle:mainfrom
cjreynol:tidy_up_error_message

Conversation

@cjreynol
Copy link
Copy Markdown
Collaborator

@cjreynol cjreynol commented May 4, 2026

During the GCE environment detection logic, the HTTP request to make the detection would print out error lines if GCE was not detected. This update makes all of the cURL outputs go into the logs, instead.

It makes the V2 metrics/metrics.log a bit noisier, but that is better than cluttering up the command-line output with the messages.

Bug: 508689956

During the GCE environment detection logic, the HTTP request to make the
detection would print out error lines if GCE was not detected.  This
update makes all of the cURL outputs go into the logs, instead.

It makes the V2 `metrics/metrics.log` a bit noisier, but that is better
than cluttering up the command-line output with the messges.

Bug: 508689956
@cjreynol cjreynol self-assigned this May 4, 2026
@cjreynol cjreynol added kokoro:force-run Trigger a presubmit build unconditionally. kokoro:run Run e2e tests. labels May 4, 2026
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed kokoro:run Run e2e tests. kokoro:force-run Trigger a presubmit build unconditionally. labels May 4, 2026
@cjreynol cjreynol enabled auto-merge May 4, 2026 22:18
Comment thread base/cvd/cuttlefish/host/libs/metrics/gce_environment.cc Outdated
And add a `clang-tidy` check to verify the comments match the parameter
names.
@cjreynol cjreynol added kokoro:force-run Trigger a presubmit build unconditionally. kokoro:run Run e2e tests. labels May 4, 2026
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed kokoro:run Run e2e tests. kokoro:force-run Trigger a presubmit build unconditionally. labels May 4, 2026
@cjreynol cjreynol added this pull request to the merge queue May 5, 2026
Merged via the queue into google:main with commit 410b258 May 5, 2026
52 of 53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants