From de1eb7303bd715122e7abfb12b79732b623448d8 Mon Sep 17 00:00:00 2001
From: Manuel Kieweg <manuel.kieweg@h-da.de>
Date: Tue, 30 Mar 2021 12:37:02 +0100
Subject: [PATCH] add nolog to integration tests

---
 test/integration/cmdIntegration_test.go | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/test/integration/cmdIntegration_test.go b/test/integration/cmdIntegration_test.go
index 3c9dae7f9..d3327abb8 100644
--- a/test/integration/cmdIntegration_test.go
+++ b/test/integration/cmdIntegration_test.go
@@ -24,6 +24,10 @@ var defaultPath = []string{"/system/config/hostname"}
 var opt *nucleus.GnmiTransportOptions
 
 func testSetupIntegration() {
+	if os.Getenv("GOSDN_LOG") == "nolog" {
+		log.SetLevel(log.PanicLevel)
+	}
+
 	a := os.Getenv("GOSDN_TEST_ENDPOINT")
 	if a != "" {
 		testAddress = a
-- 
GitLab