gabrieldemian / vincenzo

A BitTorrent client with vim-like keybindings and a terminal based UI.
https://github.com/gabrieldemian/vincenzo
MIT License
136 stars 8 forks source link

Better logs #21

Closed gabrieldemian closed 8 months ago

gabrieldemian commented 10 months ago

To have a good daemon, good log is essential. Our logs could be much better, most the logs are on the info level when they could be separated into debug and trace. Also, the logs of the peer protocol could have only 1 line instead of 3, for example, a handshake log has 3 lines:

info!("---------");
info!("{peer_addr} Handshake ");
info!("---------");

could be simplified to only 1 log

info!("{peer_addr} Handshake ......");