@@ -244,10 +244,10 @@ func containIDType(idTypes []header.IdentifierType, idType header.IdentifierType
244244// addBackend adds a backend.
245245func (s * DefaultBackendStorage ) addBackend (identifier string , idType header.IdentifierType , backend * Backend ) {
246246 if ! containIDType (s .idTypes , idType ) {
247- klog .V (4 ).InfoS ("fail to add backend" , "backend" , identifier , "error" , & ErrWrongIDType {idType , s .idTypes })
247+ klog .V (3 ).InfoS ("fail to add backend" , "backend" , identifier , "error" , & ErrWrongIDType {idType , s .idTypes })
248248 return
249249 }
250- klog .V (5 ).InfoS ("Register backend for agent" , "agentID" , identifier )
250+ klog .V (2 ).InfoS ("Register backend for agent" , "agentID" , identifier )
251251 s .mu .Lock ()
252252 defer s .mu .Unlock ()
253253 _ , ok := s .backends [identifier ]
@@ -273,7 +273,7 @@ func (s *DefaultBackendStorage) removeBackend(identifier string, idType header.I
273273 klog .ErrorS (& ErrWrongIDType {idType , s .idTypes }, "fail to remove backend" )
274274 return
275275 }
276- klog .V (5 ).InfoS ("Remove connection for agent" , "agentID" , identifier )
276+ klog .V (2 ).InfoS ("Remove connection for agent" , "agentID" , identifier )
277277 s .mu .Lock ()
278278 defer s .mu .Unlock ()
279279 backends , ok := s .backends [identifier ]
@@ -347,7 +347,7 @@ func (s *DefaultBackendStorage) GetRandomBackend() (*Backend, error) {
347347 return nil , & ErrNotFound {}
348348 }
349349 agentID := s .agentIDs [s .random .Intn (len (s .agentIDs ))]
350- klog .V (5 ).InfoS ("Pick agent as backend" , "agentID" , agentID )
350+ klog .V (3 ).InfoS ("Pick agent as backend" , "agentID" , agentID )
351351 // always return the first connection to an agent, because the agent
352352 // will close later connections if there are multiple.
353353 return s .backends [agentID ][0 ], nil
0 commit comments