Log all the PeerIDs. This is considered internal, unsupported, and may break at any point. Usage: GOLOG_FILE=~/peer.log GOLOG_LOG_FMT=json ipfs daemon Output: {"level":"info","ts":"2020-02-10T13:54:26.639Z","logger":"plugin/peerlog","caller":"peerlog/peerlog.go:51","msg":"connected","peer":"Qm
| 47 | // {"level":"info","ts":"2020-02-10T13:54:26.639Z","logger":"plugin/peerlog","caller":"peerlog/peerlog.go:51","msg":"connected","peer":"QmS2H72gdrekXJggGdE9SunXPntBqdkJdkXQJjuxcH8Cbt"} |
| 48 | // {"level":"info","ts":"2020-02-10T13:54:59.095Z","logger":"plugin/peerlog","caller":"peerlog/peerlog.go:56","msg":"identified","peer":"QmS2H72gdrekXJggGdE9SunXPntBqdkJdkXQJjuxcH8Cbt","agent":"go-ipfs/0.5.0/"} |
| 49 | type peerLogPlugin struct { |
| 50 | enabled bool |
| 51 | droppedCount uint64 |
| 52 | events chan plEvent |
| 53 | } |
| 54 | |
| 55 | var _ plugin.PluginDaemonInternal = (*peerLogPlugin)(nil) |
| 56 |
nothing calls this directly
no outgoing calls
no test coverage detected