fix: log correct error on drpc connection close error (#17265)
This commit is contained in:
1 parent
cfb6d56f62
commit
e9863aba81
1 file changed
+1
-1
+1
-1
@@ -907,7 +907,7 @@ func (a *agent) run() (retErr error) {
|
||||
defer func() {
|
||||
cErr := aAPI.DRPCConn().Close()
|
||||
if cErr != nil {
|
||||
a.logger.Debug(a.hardCtx, "error closing drpc connection", slog.Error(err))
|
||||
a.logger.Debug(a.hardCtx, "error closing drpc connection", slog.Error(cErr))
|
||||
}
|
||||
}()
|
||||
|
||||
|
||||
Reference in new issue
Block a user