I figured out a cool way of getting detailed logs independently from my console, so that only the network I/O and main program stuff are there in my Python script.
So, for that P2P client project I decided to use a specific logger object that only writes extra detailed data into a file in /tmp, and from there have Atom open it and refresh it every second or so.
Works like a charm. 👌
https://octodon.social/media/MDQbrhqoVY8BV7Kmn18