add logfile for debora

This commit is contained in:
Ethan Buchman 2015-03-31 01:27:47 -07:00 committed by Jae Kwon
parent 9ce75fe755
commit cb0f4cae0c
2 changed files with 3 additions and 1 deletions

View File

@ -106,6 +106,8 @@ func initDefaults(rootDir string) {
app.SetDefault("PrivValidatorfile", rootDir+"/priv_validator.json")
app.SetDefault("FastSync", false)
app.SetDefault("Debora.LogFile", rootDir+"/debora.log")
}
func Init(rootDir string) {

View File

@ -199,7 +199,7 @@ func deboraBroadcast(n *Node) func([]byte) {
func Daemon(deborable DeboraMode) {
// Add to debora
if deborable == DeboraPeerMode {
if err := debora.Add(PublicKey, SrcPath, AppName); err != nil {
if err := debora.Add(PublicKey, SrcPath, AppName, config.App().GetString("Debora.LogFile")); err != nil {
log.Info("Failed to add program to debora", "error", err)
}
}