Log of blocks sent to other peers?

From @kevina on Tue May 17 2016 23:37:55 GMT+0000 (UTC)

Is there currently any way to log blocks that are sent to other peers?

I am trying to get an IPFS equivalent to an http access log. I know it won’t be the same as IPFS is distributed, but it will still be useful.

The best thing I can determine is to use ipfs log level bitswap info. But I am not sure that will get everything.


Copied from original issue: https://github.com/ipfs/faq/issues/122

1 Like

From @whyrusleeping on Thu Sep 08 2016 23:41:12 GMT+0000 (UTC)

Not really easily, but you can use ipfs log tail and filter by events that are Bitswap.TaskWorker.Loop, which should tell you every time you sent a block to a peer.