move discv5 to structured logging
divagant-martian opened this issue · 1 comments
divagant-martian commented
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
it should be possible to shorten lists of node ids with
format!("[{:#}]", list.iter().format(", "))