Browse Source

improve some logging

pull/1943/head
Ethan Buchman 9 years ago
parent
commit
0825aa5d64
4 changed files with 5 additions and 5 deletions
  1. +1
    -1
      Godeps/Godeps.json
  2. +1
    -1
      handlers/handlers.go
  3. +2
    -2
      main.go
  4. +1
    -1
      vendor/github.com/tendermint/go-common/service.go

+ 1
- 1
Godeps/Godeps.json View File

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


+ 1
- 1
handlers/handlers.go 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


+ 2
- 2
main.go 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))
}
}


+ 1
- 1
vendor/github.com/tendermint/go-common/service.go 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
}


Loading…
Cancel
Save