diff --git a/tests/main_test.go b/tests/main_test.go index 6118fa01..600ea96c 100644 --- a/tests/main_test.go +++ b/tests/main_test.go @@ -18,11 +18,19 @@ package tests import ( + "os" "testing" + "github.com/sirupsen/logrus" "go.uber.org/goleak" ) func TestMain(m *testing.M) { + if level := os.Getenv("FEATURE_TEST_LOG_LEVEL"); level != "" { + if parsed, err := logrus.ParseLevel(level); err == nil { + logrus.SetLevel(parsed) + } + } + goleak.VerifyTestMain(m, goleak.IgnoreCurrent()) }