add logfile for debora
This commit is contained in:
parent
9ce75fe755
commit
cb0f4cae0c
|
@ -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) {
|
||||
|
|
|
@ -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…
Reference in New Issue