Browse Source

add logfile for debora

pull/43/merge
Ethan Buchman 10 years ago
committed by Jae Kwon
parent
commit
cb0f4cae0c
2 changed files with 3 additions and 1 deletions
  1. +2
    -0
      config/config.go
  2. +1
    -1
      daemon/daemon.go

+ 2
- 0
config/config.go 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) {


+ 1
- 1
daemon/daemon.go 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)
}
}


Loading…
Cancel
Save