gabrieldemian / vincenzo

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

Better logs #21

Closed gabrieldemian closed 1 year ago

gabrieldemian commented 1 year 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 ......");