fix: add logging when closing transport #127
No reviewers
Labels
No labels
breaking-change
bug
dependencies
duplicate
enhancement
go
good first issue
help wanted
invalid
investigation
proposal
proposal-accepted
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nemith/netconf!127
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "brb/push-ttkpqspmkopy"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Some missing error handling for closing streams to make sure we capture these.
Pull request overview
This pull request improves error handling by adding logging when closing transport and message reader resources, replacing previous
nolint:errcheckandTODOcomments with actual error capture and logging.💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
For consistency with the change at line 186 which uses
closeErrto avoid variable shadowing, consider using a different variable name here (e.g.,closeErr) instead oferr. While the shadowing doesn't cause a functional issue here since the scopes are separate, using a distinct name improves code clarity and maintains consistency with the naming convention established elsewhere in this same change.fuck off