sigp/discv5

move discv5 to structured logging

divagant-martian opened this issue · 1 comments

transform logging statements from using formating in strings to structured logging, for example:

- debug!("Node set to disconnected: {}", node_id)
+ debug!(%node_id, "Node set to disconnected")

This would make it easier to make sense of emitted logs

it should be possible to shorten lists of node ids with

format!("[{:#}]", list.iter().format(", "))

paradigmxyz/reth#6080 (comment)