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

Skip to content

Commit e9863ab

Browse files
authored
fix: log correct error on drpc connection close error (#17265)
1 parent cfb6d56 commit e9863ab

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)