diff --git a/test/integration/cmdIntegration_test.go b/test/integration/cmdIntegration_test.go
index 3c9dae7f993dbd87b0c26d95d228478b546685c3..d3327abb85848d115ab6d7be1b2639748358300a 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