whiteblock / gossipsub-testing

Gossipsub tests
MIT License
17 stars 4 forks source link

Log all messages sent #5

Open atoulme opened 5 years ago

atoulme commented 5 years ago

Add the ability to log all messages to stdout. The log line should be timestamped. The contents of the message should be shown, though the portion of the message containing random bytes should be ignored.

adam-hanna commented 5 years ago

May need to modify gossip sub source code, not 100% certain though. The protocol automatically handles all message sending I don't know of any hooks I can use to log on message send.