mirror of
https://github.com/fluencelabs/tendermint
synced 2025-07-31 20:21:56 +00:00
add logfile for debora
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user