discv5 icon indicating copy to clipboard operation
discv5 copied to clipboard

move discv5 to structured logging

Open divagant-martian opened this issue 1 year ago • 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

divagant-martian avatar Nov 30 '23 21:11 divagant-martian

it should be possible to shorten lists of node ids with

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

https://github.com/paradigmxyz/reth/issues/6080#issuecomment-1893329173

emhane avatar Mar 15 '24 11:03 emhane