1
0
Fork 0
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:
postmannen 2023-03-01 06:58:56 +01:00
parent c951484ca1
commit 4b74f4b0c4

View file

@ -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 {