Commit 3dec5d5e authored by Matthew Slipper's avatar Matthew Slipper

op-node: Turn down log level of enode filtering

This was spamming ~12 log lines every 2 seconds, so I turned down the log level.
parent a8a82b09
...@@ -216,17 +216,17 @@ func FilterEnodes(log log.Logger, cfg *rollup.Config) func(node *enode.Node) boo ...@@ -216,17 +216,17 @@ func FilterEnodes(log log.Logger, cfg *rollup.Config) func(node *enode.Node) boo
err := node.Load(&dat) err := node.Load(&dat)
// if the entry does not exist, or if it is invalid, then ignore the node // if the entry does not exist, or if it is invalid, then ignore the node
if err != nil { if err != nil {
log.Debug("discovered node record has no opstack info", "node", node.ID(), "err", err) log.Trace("discovered node record has no opstack info", "node", node.ID(), "err", err)
return false return false
} }
// check chain ID matches // check chain ID matches
if cfg.L2ChainID.Uint64() != dat.chainID { if cfg.L2ChainID.Uint64() != dat.chainID {
log.Debug("discovered node record has no matching chain ID", "node", node.ID(), "got", dat.chainID, "expected", cfg.L2ChainID.Uint64()) log.Trace("discovered node record has no matching chain ID", "node", node.ID(), "got", dat.chainID, "expected", cfg.L2ChainID.Uint64())
return false return false
} }
// check version matches // check version matches
if dat.version != 0 { if dat.version != 0 {
log.Debug("discovered node record has no matching version", "node", node.ID(), "got", dat.version, "expected", 0) log.Trace("discovered node record has no matching version", "node", node.ID(), "got", dat.version, "expected", 0)
return false return false
} }
return true return true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment