@@ -299,10 +299,10 @@ func containIDType(idTypes []header.IdentifierType, idType header.IdentifierType
299299// addBackend adds a backend.
300300func (s * DefaultBackendStorage ) addBackend (identifier string , idType header.IdentifierType , backend * Backend ) {
301301 if ! containIDType (s .idTypes , idType ) {
302- klog .V (4 ).InfoS ("fail to add backend" , "backend" , identifier , "error" , & ErrWrongIDType {idType , s .idTypes })
302+ klog .V (3 ).InfoS ("fail to add backend" , "backend" , identifier , "error" , & ErrWrongIDType {idType , s .idTypes })
303303 return
304304 }
305- klog .V (5 ).InfoS ("Register backend for agent" , "agentID" , identifier )
305+ klog .V (2 ).InfoS ("Register backend for agent" , "agentID" , identifier )
306306 s .mu .Lock ()
307307 defer s .mu .Unlock ()
308308 _ , ok := s .backends [identifier ]
@@ -327,7 +327,7 @@ func (s *DefaultBackendStorage) removeBackend(identifier string, idType header.I
327327 klog .ErrorS (& ErrWrongIDType {idType , s .idTypes }, "fail to remove backend" )
328328 return
329329 }
330- klog .V (5 ).InfoS ("Remove connection for agent" , "agentID" , identifier )
330+ klog .V (2 ).InfoS ("Remove connection for agent" , "agentID" , identifier )
331331 s .mu .Lock ()
332332 defer s .mu .Unlock ()
333333 backends , ok := s .backends [identifier ]
@@ -400,7 +400,7 @@ func (s *DefaultBackendStorage) GetRandomBackend() (*Backend, error) {
400400 return nil , & ErrNotFound {}
401401 }
402402 agentID := s .agentIDs [s .random .Intn (len (s .agentIDs ))]
403- klog .V (5 ).InfoS ("Pick agent as backend" , "agentID" , agentID )
403+ klog .V (3 ).InfoS ("Pick agent as backend" , "agentID" , agentID )
404404 // always return the first connection to an agent, because the agent
405405 // will close later connections if there are multiple.
406406 return s .backends [agentID ][0 ], nil
0 commit comments