mirror of
https://github.com/minio/minio.git
synced 2026-11-13 14:44:19 +00:00
Avoid messages from go test output (#15601)
A lot of warning messages are printed in CI/CD failures generated by go test. Avoid that by requiring at least Error level for logging when doing go test.
This commit is contained in:
1 parent
3a1d3a7952
commit
1f28a3bb80
5 files changed
+30
-24
No files matched your search
@@ -99,11 +99,11 @@ func TestMain(m *testing.M) {
|
||||
// Set as non-distributed.
|
||||
globalIsDistErasure = false
|
||||
|
||||
if !testing.Verbose() {
|
||||
// Disable printing console messages during tests.
|
||||
color.Output = ioutil.Discard
|
||||
logger.Disable = true
|
||||
}
|
||||
// Disable printing console messages during tests.
|
||||
color.Output = ioutil.Discard
|
||||
// Minimum is error logs for testing
|
||||
logger.MinimumLogLevel = logger.ErrorLvl
|
||||
|
||||
// Uncomment the following line to see trace logs during unit tests.
|
||||
// logger.AddTarget(console.New())
|
||||
|
||||
|
||||
Reference in new issue
Block a user