Skip to content

kaizen for diskInfoImpl.Export#172

Open
ushitora-anqou wants to merge 2 commits intomainfrom
add-post-error-log-for-mount-probe
Open

kaizen for diskInfoImpl.Export#172
ushitora-anqou wants to merge 2 commits intomainfrom
add-post-error-log-for-mount-probe

Conversation

@ushitora-anqou
Copy link
Copy Markdown
Member

@ushitora-anqou ushitora-anqou commented Apr 28, 2026

This PR consists of two commits of kaizen for diskInfoImpl.Export.

@ushitora-anqou ushitora-anqou force-pushed the add-post-error-log-for-mount-probe branch 2 times, most recently from 4a43c64 to 86ba18a Compare April 28, 2026 02:06
@ushitora-anqou ushitora-anqou changed the title add POST error log for mount probe kaizen for diskInfoImpl.Export Apr 28, 2026
@ushitora-anqou ushitora-anqou force-pushed the add-post-error-log-for-mount-probe branch from 86ba18a to 7f02319 Compare April 28, 2026 09:16
Signed-off-by: Ryotaro Banno <ryotaro.banno@gmail.com>
@ushitora-anqou ushitora-anqou force-pushed the add-post-error-log-for-mount-probe branch from 7f02319 to b8b048c Compare April 30, 2026 00:38
@ushitora-anqou ushitora-anqou marked this pull request as ready for review April 30, 2026 00:48
@ushitora-anqou ushitora-anqou requested a review from a team as a code owner April 30, 2026 00:48
Comment thread probe/exporter.go
Comment on lines +51 to 53
resp, err = http.Post(di.url, "application/json", bytes.NewReader(s))
_ = resp.Body.Close()
if err == nil {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we check err before touching resp.Body.Close()?
resp can be nil on request errors.

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.

Right. I'll fix this.

Signed-off-by: Ryotaro Banno <ryotaro.banno@gmail.com>
@ushitora-anqou ushitora-anqou force-pushed the add-post-error-log-for-mount-probe branch from b8b048c to 700b692 Compare April 30, 2026 08:58
@ushitora-anqou ushitora-anqou requested a review from molpako April 30, 2026 09:37
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.

3 participants