improve some logging

This commit is contained in:
Ethan Buchman 2016-02-02 23:04:54 -05:00
parent d52f690e56
commit 0825aa5d64
4 changed files with 5 additions and 5 deletions

2
Godeps/Godeps.json generated
View File

@ -70,7 +70,7 @@
},
{
"ImportPath": "github.com/tendermint/go-common",
"Rev": "19f5a93cffe6df6734c3e7cf3896ba3cea546348"
"Rev": "02022e356aab724d17b8cc2e4e035ef49b6099af"
},
{
"ImportPath": "github.com/tendermint/go-config",

View File

@ -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

View File

@ -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))
}
}

View File

@ -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
}