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

Skip to content

Commit b1ccf48

Browse files
gcp-cherry-pick-bot[bot]aaronlehmannmatifali
authored
fix: log correct error on drpc connection close error (cherry-pick #17265) (#17267)
Co-authored-by: Aaron Lehmann <[email protected]> Co-authored-by: M Atif Ali <[email protected]>
1 parent 3fa1030 commit b1ccf48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agent/agent.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ func (a *agent) run() (retErr error) {
907907
defer func() {
908908
cErr := aAPI.DRPCConn().Close()
909909
if cErr != nil {
910-
a.logger.Debug(a.hardCtx, "error closing drpc connection", slog.Error(err))
910+
a.logger.Debug(a.hardCtx, "error closing drpc connection", slog.Error(cErr))
911911
}
912912
}()
913913

0 commit comments

Comments
 (0)