mirror of
https://github.com/postmannen/ctrl.git
synced 2024-12-14 12:37:31 +00:00
changed log level for tests
This commit is contained in:
parent
c951484ca1
commit
4b74f4b0c4
1 changed files with 5 additions and 4 deletions
|
@ -57,9 +57,6 @@ func TestMain(m *testing.M) {
|
|||
}
|
||||
|
||||
func newServerForTesting(addressAndPort string, testFolder string) (*server, *Configuration) {
|
||||
if !*logging {
|
||||
log.SetOutput(io.Discard)
|
||||
}
|
||||
|
||||
// Start Steward instance
|
||||
// ---------------------------------------
|
||||
|
@ -68,6 +65,9 @@ func newServerForTesting(addressAndPort string, testFolder string) (*server, *Co
|
|||
// Create the config to run a steward instance.
|
||||
//tempdir := "./tmp"
|
||||
conf := newConfigurationDefaults()
|
||||
if *logging {
|
||||
conf.LogLevel = "warning"
|
||||
}
|
||||
conf.BrokerAddress = addressAndPort
|
||||
conf.NodeName = "central"
|
||||
conf.CentralNodeName = "central"
|
||||
|
@ -78,7 +78,8 @@ func newServerForTesting(addressAndPort string, testFolder string) (*server, *Co
|
|||
conf.DatabaseFolder = testFolder
|
||||
conf.IsCentralErrorLogger = true
|
||||
conf.IsCentralAuth = true
|
||||
conf.EnableDebug = true
|
||||
conf.EnableDebug = false
|
||||
conf.LogLevel = "none"
|
||||
|
||||
stewardServer, err := NewServer(&conf, "test")
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue