Skip to content

Commit

Permalink
change log level
Browse files Browse the repository at this point in the history
  • Loading branch information
benbaley committed Jan 19, 2024
1 parent 6bfea26 commit 3ce56bd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/state_transition.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ func (st *StateTransition) TransitionDb() (*ExecutionResult, error) {
}

if vmerr != nil {
log.Error("VM returned with error", "blockNumber", st.evm.Context.BlockNumber, "txHash", st.evm.StateDB.TxHash().TerminalString(), "err", vmerr)
log.Info("VM returned with error", "blockNumber", st.evm.Context.BlockNumber, "txHash", st.evm.StateDB.TxHash().TerminalString(), "err", vmerr)
// A possible consensus-error would be if there wasn't
// sufficient balance to make the transfer happen. The first
// balance transfer may never fail.
Expand Down
2 changes: 1 addition & 1 deletion eth/downloader/downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -1715,7 +1715,7 @@ func (d *Downloader) commitFastSyncData(results []*fetchResult, stateSync *state
func (d *Downloader) commitPivotBlock(result *fetchResult) error {
block := types.NewBlockWithHeader(result.Header).WithBody(result.Transactions, result.ExtraData)
//TODO: 临时改为Error级,方便升级时判断fast同步信息
log.Debug("Committing fast sync pivot as new head", "number", block.Number(), "hash", block.Hash())
log.Error("Committing fast sync pivot as new head", "number", block.Number(), "hash", block.Hash())

// Commit the pivot block as the new head, will require full sync from here on
if _, err := d.blockchain.InsertReceiptChain([]*types.Block{block}, []types.Receipts{result.Receipts}, d.ancientLimit); err != nil {
Expand Down
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().Error("Message handling failed in `eth`", "err", err)
peer.Log().Debug("Message handling failed in `eth`", "err", err)
return err
}
}
Expand Down

0 comments on commit 3ce56bd

Please sign in to comment.