Commit 77c1f634 authored by Rinke Hendriksen's avatar Rinke Hendriksen Committed by GitHub

Ux fixes (#303)

* put p2p address log from info to debug
* fix typo in README
* improve logging around swarm address
parent 0fad6042
...@@ -115,7 +115,7 @@ The first node address will be used for other nodes to discover themselves. It i ...@@ -115,7 +115,7 @@ The first node address will be used for other nodes to discover themselves. It i
bee --config node1.yaml start bee --config node1.yaml start
``` ```
When the node starts it will print out some of its `p2p addresses` in a multiaddress form like this: `/ip4/127.0.0.1/tcp/7071/p2p/16Uiu2HAm2LXfYsY9pXtgGdQ8oPb3bAkxwpfBE6AMzcscH1UkQLZM`. This address is the `bootnonde address`. When the node starts it will print out some of its `p2p addresses` in a multiaddress form like this: `/ip4/127.0.0.1/tcp/7071/p2p/16Uiu2HAm2LXfYsY9pXtgGdQ8oPb3bAkxwpfBE6AMzcscH1UkQLZM`. This address is the `bootnode address`.
### Starting other nodes ### Starting other nodes
......
...@@ -111,18 +111,20 @@ func NewBee(o Options) (*Bee, error) { ...@@ -111,18 +111,20 @@ func NewBee(o Options) (*Bee, error) {
} }
address := crypto.NewOverlayAddress(swarmPrivateKey.PublicKey, o.NetworkID) address := crypto.NewOverlayAddress(swarmPrivateKey.PublicKey, o.NetworkID)
if created { if created {
logger.Info("new swarm key created") logger.Infof("new swarm network address created: %s", address)
} else {
logger.Infof("using existing swarm network address: %s", address)
} }
logger.Infof("address: %s", address)
// Construct P2P service. // Construct P2P service.
libp2pPrivateKey, created, err := keyStore.Key("libp2p", o.Password) libp2pPrivateKey, created, err := keyStore.Key("libp2p", o.Password)
if err != nil { if err != nil {
return nil, fmt.Errorf("libp2p key: %w", err) return nil, fmt.Errorf("libp2p key: %w", err)
} }
if created { if created {
logger.Infof("new libp2p key created") logger.Debugf("new libp2p key created")
} else {
logger.Debugf("using existing libp2p key")
} }
var stateStore storage.StateStorer var stateStore storage.StateStorer
...@@ -196,7 +198,7 @@ func NewBee(o Options) (*Bee, error) { ...@@ -196,7 +198,7 @@ func NewBee(o Options) (*Bee, error) {
} }
for _, addr := range addrs { for _, addr := range addrs {
logger.Infof("p2p address: %s", addr) logger.Debugf("p2p address: %s", addr)
} }
var ( var (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment