@@ -356,7 +356,7 @@ func (a *Client) Serve() {
356
356
} else {
357
357
select {
358
358
case <- a .stopCh :
359
- klog .V (5 ).InfoS ("could not read stream because agent client is shutting down" , "err" , err )
359
+ klog .V (5 ).InfoS ("could not read stream because agent client is shutting down" , "serverID" , a . serverID , "agentID" , a . agentID , " err" , err )
360
360
default :
361
361
// If stopCh is not closed, this is a legitimate, unexpected error.
362
362
klog .ErrorS (err , "could not read stream" , "serverID" , a .serverID , "agentID" , a .agentID )
@@ -414,11 +414,11 @@ func (a *Client) Serve() {
414
414
}
415
415
if err := a .Send (closePkt ); err != nil {
416
416
if err == io .EOF {
417
- klog .V (2 ).InfoS ("received EOF; connection already closed" , "connectionID" , connID , "err" , err )
417
+ klog .V (2 ).InfoS ("received EOF; connection already closed" , "connectionID" , connID , "dialID" , dialReq . Random , " err" , err )
418
418
} else if _ , ok := a .connManager .Get (connID ); ! ok {
419
- klog .V (5 ).InfoS ("connection already closed" , "connectionID" , connID , "err" , err )
419
+ klog .V (5 ).InfoS ("connection already closed" , "connectionID" , connID , "dialID" , dialReq . Random , " err" , err )
420
420
} else {
421
- klog .ErrorS (err , "close response failure" , "" )
421
+ klog .ErrorS (err , "close response failure" , "connectionID" , connID , "dialID" , dialReq . Random )
422
422
}
423
423
}
424
424
close (dataCh )
0 commit comments