Skip to content

Commit

Permalink
Adjust log level
Browse files Browse the repository at this point in the history
  • Loading branch information
niuxiaojie81 committed Jan 4, 2024
1 parent 402be73 commit 7d00e96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion eth/protocols/eth/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down
5 changes: 3 additions & 2 deletions eth/protocols/snap/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
}
}
Expand Down

0 comments on commit 7d00e96

Please sign in to comment.