swarm, swarm/network, swarm/pss: log error and fix logs (#17410)

* swarm, swarm/network, swarm/pss: log error and fix logs

* swarm/pss: log compressed publickey
This commit is contained in:
Anton Evangelatov
2018-08-21 10:34:10 +02:00
committed by Péter Szilágyi
parent 85c6a1c526
commit dcd97c41fa
3 changed files with 21 additions and 22 deletions

View File

@@ -232,12 +232,13 @@ func (p *Pss) Start(srv *p2p.Server) error {
}
}
}()
log.Debug("Started pss", "public key", common.ToHex(crypto.FromECDSAPub(p.PublicKey())))
log.Info("Started Pss")
log.Info("Loaded EC keys", "pubkey", common.ToHex(crypto.FromECDSAPub(p.PublicKey())), "secp256", common.ToHex(crypto.CompressPubkey(p.PublicKey())))
return nil
}
func (p *Pss) Stop() error {
log.Info("pss shutting down")
log.Info("Pss shutting down")
close(p.quitC)
return nil
}