fix tests

This commit is contained in:
Ethan Buchman
2017-05-26 12:17:32 -04:00
parent 42626d9e16
commit bd7ec18c19
7 changed files with 21 additions and 12 deletions
+10 -1
View File
@@ -1,6 +1,7 @@
package config
import (
"fmt"
"path/filepath"
"time"
@@ -108,7 +109,7 @@ func DefaultBaseConfig() BaseConfig {
Moniker: "anonymous",
ProxyApp: "tcp://127.0.0.1:46658",
ABCI: "socket",
LogLevel: "state:info,*:error",
LogLevel: DefaultPackageLogLevels(),
ProfListenAddress: "",
FastSync: true,
FilterPeers: false,
@@ -139,6 +140,14 @@ func (b BaseConfig) DBDir() string {
return rootify(b.DBPath, b.RootDir)
}
func DefaultLogLevel() string {
return "error"
}
func DefaultPackageLogLevels() string {
return fmt.Sprintf("state:info,*:%s", DefaultLogLevel())
}
//-----------------------------------------------------------------------------
// RPCConfig