What `ipfs log tail` command means

I would like to understand what the outputs for ipfs log tail means which has the different operations like handleFindPeer, handleGetProviders.
For example when I see the event with handleAddProvider what does it mean and how is it related to my running ipfs node?

ipfs log tail exposes internal debug logs / perf info from the logging system. Most of the messages there will be related to dht, swarm (networking/peer management) and bitswap.

The best way to find where a message comes from is probably to just run a full text search over the ipfs codebase.

For example handleAddProvider comes from https://github.com/libp2p/go-libp2p-kad-dht/blob/fd8d798b512f65a2def035c1efac18081550e759/handlers.go#L342

1 Like