mirror of
https://github.com/tendermint/tendermint.git
synced 2026-04-15 21:27:06 +00:00
improve some logging
This commit is contained in:
2
Godeps/Godeps.json
generated
2
Godeps/Godeps.json
generated
@@ -70,7 +70,7 @@
|
||||
},
|
||||
{
|
||||
"ImportPath": "github.com/tendermint/go-common",
|
||||
"Rev": "19f5a93cffe6df6734c3e7cf3896ba3cea546348"
|
||||
"Rev": "02022e356aab724d17b8cc2e4e035ef49b6099af"
|
||||
},
|
||||
{
|
||||
"ImportPath": "github.com/tendermint/go-config",
|
||||
|
||||
@@ -123,7 +123,7 @@ func (tn *TendermintNetwork) RegisterChain(chainConfig *types.BlockchainConfig)
|
||||
v.Status = &types.ValidatorStatus{}
|
||||
|
||||
if err := v.Start(); err != nil {
|
||||
return nil, err
|
||||
return nil, fmt.Errorf("Error starting validator %s: %v", v.Config.Validator.ID, err)
|
||||
}
|
||||
|
||||
// register callbacks for the validator
|
||||
|
||||
4
main.go
4
main.go
@@ -173,7 +173,7 @@ func cmdMonitor(c *cli.Context) {
|
||||
// Register validator set
|
||||
_, err := network.RegisterValidatorSet(valSetCfg)
|
||||
if err != nil {
|
||||
Exit(err.Error())
|
||||
Exit("Register validator set error: " + err.Error())
|
||||
}
|
||||
}
|
||||
|
||||
@@ -181,7 +181,7 @@ func cmdMonitor(c *cli.Context) {
|
||||
// Register blockchain
|
||||
_, err := network.RegisterChain(chainCfg)
|
||||
if err != nil {
|
||||
Exit(err.Error())
|
||||
Exit(Fmt("Register chain error for chain %s: %v", chainCfg.ID, err))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
2
vendor/github.com/tendermint/go-common/service.go
generated
vendored
2
vendor/github.com/tendermint/go-common/service.go
generated
vendored
@@ -110,7 +110,7 @@ func (bs *BaseService) Stop() bool {
|
||||
return true
|
||||
} else {
|
||||
if bs.log != nil {
|
||||
bs.log.Notice(Fmt("Stopping %v (ignoring: already stopped)", bs.name), "impl", bs.impl)
|
||||
bs.log.Debug(Fmt("Stopping %v (ignoring: already stopped)", bs.name), "impl", bs.impl)
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user