-
-
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
Add verbose mode to ipfs swarm connect #3746
Comments
This should be easy. @whyrusleeping do you want me to do this? |
@kevina Sure, go ahead. It may require digging into some libp2p stuff, but it shouldnt be too difficult |
I think the best way to do this would be to use @whyrusleeping thoughts. |
@kevina I like the context approach. Its probably important here to clearly define what the interfaces should look like. Other than that, go for it. |
As far as the API goes the output is now:
Since the doesn't have any structure already, if the
That is each debug output will be send as a separate json value with the final value being the normal output. For the value added to the context I think I will call it "DebugChannel" and have the value be a |
@whyrusleeping could I get some feedback on this |
I dislike the current api. Its really not a good format, and isnt machine parseable at all. I think we can get away with changing it here. A better format moving forward could look like repeated messages of type:
|
SGWM, |
|
Better put it in go-libp2p-swarm -- it's further up the dependency tree
Let's call this peerID or peer_id
Let's add fields when we need them, opaque unspecced values == bad :) |
Actually it would be best if this could happen as close to the respective command code as possible |
@lgierth sorry, I completely missed your comments. But I am a little confused. What are you trying to tell me when you say "Actually it would be best if this could happen as close to the respective command code as possible."? |
Okay, that was @whyrusleeping idea. |
hrm... yeah. in retrospect maybe that wasnt the best idea on my part. |
@kevina any update here? |
It would be nice to get a log of what the dialer is trying and how each thing succeeds or fails:
The text was updated successfully, but these errors were encountered: