Reset log after config changes.

This commit is contained in:
Jae Kwon
2015-03-30 21:53:22 -07:00
committed by Ethan Buchman
parent 60f166e823
commit 39d5ff9ccb
4 changed files with 18 additions and 12 deletions

View File

@ -60,7 +60,7 @@ func init() {
app.Set("PrivValidatorFile", rootDir+"/priv_validator.json")
app.Set("Log.Stdout.Level", "debug")
config.SetApp(app)
logger.InitLog()
logger.Reset()
// start a node
ready := make(chan struct{})
go newNode(ready)