diff --git a/eth/protocols/eth/handler.go b/eth/protocols/eth/handler.go index 9382a90205..65635f360e 100644 --- a/eth/protocols/eth/handler.go +++ b/eth/protocols/eth/handler.go @@ -166,7 +166,7 @@ func nodeInfo(chain *core.BlockChain, network uint64) *NodeInfo { func Handle(backend Backend, peer *Peer) error { for { if err := handleMessage(backend, peer); err != nil { - peer.Log().Debug("Message handling failed in `eth`", "err", err) + peer.Log().Error("Message handling failed in `eth`", "err", err) return err } } diff --git a/eth/protocols/snap/handler.go b/eth/protocols/snap/handler.go index 8278ea0674..ba4495befe 100644 --- a/eth/protocols/snap/handler.go +++ b/eth/protocols/snap/handler.go @@ -19,9 +19,10 @@ package snap import ( "bytes" "fmt" - "github.com/PlatONnetwork/PlatON-Go/core/types" "time" + "github.com/PlatONnetwork/PlatON-Go/core/types" + "github.com/PlatONnetwork/PlatON-Go/common" "github.com/PlatONnetwork/PlatON-Go/core" "github.com/PlatONnetwork/PlatON-Go/light" @@ -121,7 +122,7 @@ func MakeProtocols(backend Backend, dnsdisc enode.Iterator) []p2p.Protocol { func handle(backend Backend, peer *Peer) error { for { if err := HandleMessage(backend, peer); err != nil { - peer.Log().Debug("Message handling failed in `snap`", "err", err) + peer.Log().Error("Message handling failed in `snap`", "err", err) return err } }