chore: optimize log (#3151)

Signed-off-by: Jim Ma <majinjing3@gmail.com>
This commit is contained in:
Jim Ma 2024-03-28 10:26:34 +08:00 committed by GitHub
parent 49ac8d52bd
commit d4ac1cc856
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -721,8 +721,8 @@ loop:
if !firstPacketReceived { if !firstPacketReceived {
close(firstPacketDone) close(firstPacketDone)
} }
pt.forceBackSource()
pt.Infof("receive back source code") pt.Infof("receive back source code")
pt.forceBackSource()
return return
} }
pt.Errorf("receive peer packet with error: %d", peerPacket.Code) pt.Errorf("receive peer packet with error: %d", peerPacket.Code)

View File

@ -84,7 +84,7 @@ func newSeedPeerClient(dynconfig config.DynconfigInterface, hostManager HostMana
return nil, err return nil, err
} }
fmt.Println("cdnsystemClient", cdnsystemClient) logger.Infof("cdnsystemClient: %#v", cdnsystemClient)
// Initialize dfdaemon v2 grpc client. // Initialize dfdaemon v2 grpc client.
dfdaemonClient, err := dfdaemonclient.GetV2(context.Background(), dynconfig, opts...) dfdaemonClient, err := dfdaemonclient.GetV2(context.Background(), dynconfig, opts...)
@ -92,7 +92,7 @@ func newSeedPeerClient(dynconfig config.DynconfigInterface, hostManager HostMana
return nil, err return nil, err
} }
fmt.Println("dfdaemonClient", dfdaemonClient) logger.Infof("dfdaemonClient: %#v", dfdaemonClient)
sc := &seedPeerClient{ sc := &seedPeerClient{
hostManager: hostManager, hostManager: hostManager,