sigp / discv5

Rust implementation of Discovery v5
Apache License 2.0
155 stars 64 forks source link

move discv5 to structured logging #222

Closed divagant-martian closed 1 week ago

divagant-martian commented 7 months ago

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

emhane commented 4 months ago

it should be possible to shorten lists of node ids with

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

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