-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(peerlog): log protocols/versions #6972
Conversation
10175a0
to
255fefb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It blends
⨎ GOLOG_FILE=~/peer.log IPFS_LOGGING_FMT=json ./ipfs daemon
Initializing daemon...
go-ipfs version: 0.5.0-dev-255fefb2a-dirty
...
Daemon is ready
{"level":"info","ts":"2020-03-13T09:34:38.223Z","logger":"plugin/peerlog","caller":"peerlog/peerlog.go:56","msg":"connected","peer":"QmXUEWEWWq6dhKqBwryPSR8jYoa9ByeAaqnz62CRDY7ppL"}
{"level":"info","ts":"2020-03-13T09:34:38.306Z","logger":"plugin/peerlog","caller":"peerlog/peerlog.go:89","msg":"identified","peer":"QmXUEWEWWq6dhKqBwryPSR8jYoa9ByeAaqnz62CRDY7ppL","agent":"/go-ipfs/0.5.0-dev/a44c610","protocols":["/ipfs/id/1.0.0","/ipfs/ping/1.0.0","/libp2p/circuit/relay/0.1.0","/ipfs/kad/1.0.0","/meshsub/1.0.0","/floodsub/1.0.0","/ipfs/bitswap/1.0.0","/x/","/ipfs/id/push/1.0.0","/p2p/id/delta/1.0.0","/libp2p/fetch/0.0.1","/ipfs/bitswap/1.1.0","/ipfs/bitswap"]}
{"level":"info","ts":"2020-03-13T09:34:38.496Z","logger":"plugin/peerlog","caller":"peerlog/peerlog.go:56","msg":"connected","peer":"QmXYHU1M8t86gRKvUmE42smybPKXqTPEUPDUaCVtLmS6Bw"}
{"level":"info","ts":"2020-03-13T09:34:38.640Z","logger":"plugin/peerlog","caller":"peerlog/peerlog.go:89","msg":"identified","peer":"QmXYHU1M8t86gRKvUmE42smybPKXqTPEUPDUaCVtLmS6Bw","agent":"/go-ipfs/0.5.0-dev/a44c610","protocols":["/floodsub/1.0.0","/libp2p/fetch/0.0.1","/ipfs/bitswap/1.1.0","/ipfs/bitswap","/p2p/id/delta/1.0.0","/ipfs/ping/1.0.0","/ipfs/kad/1.0.0","/meshsub/1.0.0","/x/","/ipfs/id/1.0.0","/ipfs/id/push/1.0.0","/libp2p/circuit/relay/0.1.0","/ipfs/bitswap/1.0.0"]}
{"level":"info","ts":"2020-03-13T09:34:39.468Z","logger":"plugin/peerlog","caller":"peerlog/peerlog.go:56","msg":"connected","peer":"12D3KooWFB51PRY9BxcXSH6khFXw1BZeszeLDy7C8GciskqCTZn5"}
{"level":"info","ts":"2020-03-13T09:34:39.614Z","logger":"plugin/peerlog","caller":"peerlog/peerlog.go:89","msg":"identified","peer":"12D3KooWFB51PRY9BxcXSH6khFXw1BZeszeLDy7C8GciskqCTZn5","agent":"dhtbooster/2","protocols":["/ipfs/kad/1.0.0","/ipfs/id/1.0.0","/ipfs/id/push/1.0.0","/p2p/id/delta/1.0.0","/ipfs/ping/1.0.0","/libp2p/circuit/relay/0.1.0"]}
{"level":"info","ts":"2020-03-13T09:34:43.768Z","logger":"plugin/peerlog","caller":"peerlog/peerlog.go:56","msg":"connected","peer":"QmXRfQNqyqy7mFs4B4DXux7QhFBHRtbrRYSyYFAxP2VpaV"}
{"level":"info","ts":"2020-03-13T09:34:44.796Z","logger":"plugin/peerlog","caller":"peerlog/peerlog.go:89","msg":"identified","peer":"QmXRfQNqyqy7mFs4B4DXux7QhFBHRtbrRYSyYFAxP2VpaV","agent":"go-ipfs/0.4.21/","protocols":["/x/","/ipfs/id/1.0.0","/ipfs/id/push/1.0.0","/ipfs/ping/1.0.0","/libp2p/circuit/relay/0.1.0","/ipfs/kad/1.0.0","/ipfs/bitswap/1.1.0","/ipfs/bitswap/1.0.0","/ipfs/bitswap"]}
{"level":"info","ts":"2020-03-13T09:34:44.879Z","logger":"plugin/peerlog","caller":"peerlog/peerlog.go:56","msg":"connected","peer":"QmZCbNvjmUxdAwMX9KxQftQRL1KKASSs7qB21NW5udNM41"}
{"level":"info","ts":"2020-03-13T09:34:44.902Z","logger":"plugin/peerlog","caller":"peerlog/peerlog.go:89","msg":"identified","peer":"QmZCbNvjmUxdAwMX9KxQftQRL1KKASSs7qB21NW5udNM41","agent":"go-ipfs/0.4.22/","protocols":["/libp2p/circuit/relay/0.1.0","/ipfs/bitswap/1.1.0","/ipfs/bitswap/1.0.0","/ipfs/bitswap","/x/","/ipfs/id/push/1.0.0","/ipfs/ping/1.0.0","/ipfs/id/1.0.0","/ipfs/kad/1.0.0"]}
of note, looking at that output it looks like the agent string didn't previously start with a /
and now does.
"agent":"dhtbooster/2"
"agent":"go-ipfs/0.4.21/"
"agent":"go-ipfs/0.4.22/"
vs"agent":"/go-ipfs/0.5.0-dev/a44c610
for consistency with what's out there, perhaps we should revert to not prefixing it with a slash. it otherwise looks like a multiaddr which is confusing.
Fixed in #6993. |
No description provided.