-
-
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(daemon): improve stdout on startup #10472
Conversation
It no longer makes sense to list all listener and announced multiaddrs when the node starts. Modern libp2p node will have 3-4 transports sharign the same UDP port, and also have a very long list of webtransport and webrtc direct certhashes inlined in the address. This makes startup output hard to parse, and what is worse, there is no PeerID, making printing these addresses not very useful without calling 'ipfs id' anyway. This change removes annouced and discovered multiaddrs from the stdout and replaces them with prompt to run "ipfs id". This allows user to learn about public address obtained via relays or UPnP. Second change is to replace list of listeners in multiaddr form with simpler one, that deduplicates listeners and provides node operatior with useful information about opened ports in 'host:port (tcp,udp)' format, which is way more useful during debuging connectivity issues related to port forwarding etc.
subjective, but looks better than ,
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.
No concerns raised so far, landing to master
, and 0.30.0-rc1
next week for wider feedback.
@lidel with these changes, how do users get listening multiaddrs for the kubo node? should we print out a "get listening multiaddrs with" line? |
Good question. I'd say user can inspect config? Daemon should print useful information, and not all defined listeners will work. This PR prints Felt like a good compromise, but if it is not enough, free to improve this line in a new PR: Line 826 in 7b2d58e
|
Summary
This PR is based on today's colo discussion, aims to address two problems with
ipfs daemon
output during startup:host:port (TCP, UDP)
and hide libp2p behindipfs id
Rationale
It no longer makes sense to list all listener and announced multiaddrs when the node starts. Modern libp2p node will have 3-4 transports sharing the same UDP port, and also have a very long list of webtransport and webrtc direct certhashes inlined in the address.
This makes startup output hard to parse, and what is worse, there is no PeerID, making printing these addresses not very useful without calling 'ipfs id' anyway.
This change removes announced and discovered multiaddrs from the stdout and replaces them with prompt to run "ipfs id". This allows user to learn about public address obtained via relays or UPnP.
Second change is to replace list of listeners in multiaddr form with simpler one, that de-duplicates listeners and provides node operator with useful information about opened ports in 'host:port (tcp,udp)' format, which is way more useful during debugging connectivity issues related to port forwarding etc.
Before
After (this PR)
PeerID is printed, and swarm listeners are summarized as
host:port (TCP, UDP)
cc #10436