Thanks to visit codestin.com
Credit goes to github.com

Skip to content

vmm: api: Log HTTP API error responses - #8181

Merged
rbradford merged 1 commit into
cloud-hypervisor:mainfrom
rbradford:202605/log-api-errors
May 11, 2026
Merged

rbradford merged 1 commit into
cloud-hypervisor:mainfrom
rbradford:202605/log-api-errors

Conversation

@rbradford

Copy link
Copy Markdown
Member

Although a response is sent to the client these errors are not logged in
the log file making it hard to cross reference these with other log
entries.

Signed-off-by: Rob Bradford [email protected]

Although a response is sent to the client these errors are not logged in
the log file making it hard to cross reference these with other log
entries.

Signed-off-by: Rob Bradford <[email protected]>
@rbradford
rbradford requested a review from a team as a code owner May 9, 2026 19:36
Comment thread vmm/src/api/http/mod.rs
.map(|error| format!("{error}"))
.collect::<Vec<_>>();

info!("HTTP API error response: {}", error_messages.join(": "));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I'd favor newlines here but feel free to ignore

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't that be strange in the log file?

@rbradford
rbradford added this pull request to the merge queue May 11, 2026
Merged via the queue into cloud-hypervisor:main with commit 5ca6934 May 11, 2026
41 checks passed
@github-project-automation github-project-automation Bot moved this from 🆕 New to ✅ Done in Cloud Hypervisor Roadmap May 14, 2026
@rbradford
rbradford deleted the 202605/log-api-errors branch June 12, 2026 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

3 participants