@@ -244,10 +244,10 @@ func containIDType(idTypes []header.IdentifierType, idType header.IdentifierType
244
244
// addBackend adds a backend.
245
245
func (s * DefaultBackendStorage ) addBackend (identifier string , idType header.IdentifierType , backend * Backend ) {
246
246
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 })
248
248
return
249
249
}
250
- klog .V (5 ).InfoS ("Register backend for agent" , "agentID" , identifier )
250
+ klog .V (2 ).InfoS ("Register backend for agent" , "agentID" , identifier )
251
251
s .mu .Lock ()
252
252
defer s .mu .Unlock ()
253
253
_ , ok := s .backends [identifier ]
@@ -273,7 +273,7 @@ func (s *DefaultBackendStorage) removeBackend(identifier string, idType header.I
273
273
klog .ErrorS (& ErrWrongIDType {idType , s .idTypes }, "fail to remove backend" )
274
274
return
275
275
}
276
- klog .V (5 ).InfoS ("Remove connection for agent" , "agentID" , identifier )
276
+ klog .V (2 ).InfoS ("Remove connection for agent" , "agentID" , identifier )
277
277
s .mu .Lock ()
278
278
defer s .mu .Unlock ()
279
279
backends , ok := s .backends [identifier ]
@@ -347,7 +347,7 @@ func (s *DefaultBackendStorage) GetRandomBackend() (*Backend, error) {
347
347
return nil , & ErrNotFound {}
348
348
}
349
349
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 )
351
351
// always return the first connection to an agent, because the agent
352
352
// will close later connections if there are multiple.
353
353
return s .backends [agentID ][0 ], nil
0 commit comments