From 6090580c5a531208d76f2564b1144748ec9bedda Mon Sep 17 00:00:00 2001
From: jbhusson <jonah@elixxir.io>
Date: Thu, 5 Jan 2023 12:21:30 -0500
Subject: [PATCH] Remove print

---
 connect/webConn.go | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/connect/webConn.go b/connect/webConn.go
index 4eb69ce..5a1031c 100644
--- a/connect/webConn.go
+++ b/connect/webConn.go
@@ -3,7 +3,6 @@ package connect
 import (
 	"crypto/tls"
 	"crypto/x509"
-	"fmt"
 	"net/http"
 	"net/http/httptrace"
 	"regexp"
@@ -214,13 +213,13 @@ func (wc *webConn) isOnlineHelper(addr string, pingTimeout time.Duration) (time.
 
 	trace := &httptrace.ClientTrace{
 		DNSDone: func(dnsInfo httptrace.DNSDoneInfo) {
-			jww.DEBUG.Printf("DNS Info: %+v\n", dnsInfo)
+			jww.TRACE.Printf("DNS Info: %+v\n", dnsInfo)
 		},
 		GotConn: func(connInfo httptrace.GotConnInfo) {
-			jww.DEBUG.Printf("Got Conn: %+v\n", connInfo)
+			jww.TRACE.Printf("Got Conn: %+v\n", connInfo)
 		},
 		GotFirstResponseByte: func() {
-			jww.DEBUG.Print("Got first byte!")
+			jww.TRACE.Print("Got first byte!")
 		},
 	}
 
@@ -229,8 +228,7 @@ func (wc *webConn) isOnlineHelper(addr string, pingTimeout time.Duration) (time.
 	jww.TRACE.Printf("(GO request): %+v", req)
 
 	req = req.WithContext(httptrace.WithClientTrace(req.Context(), trace))
-	var resp *http.Response
-	if resp, err = client.Do(req); err != nil {
+	if _, err = client.Do(req); err != nil {
 		jww.TRACE.Printf("(GO error): %s", err.Error())
 		if checkErrorExceptions(err) {
 			jww.DEBUG.Printf(
@@ -242,7 +240,6 @@ func (wc *webConn) isOnlineHelper(addr string, pingTimeout time.Duration) (time.
 			return time.Since(start), false
 		}
 	}
-	fmt.Println(resp)
 	client.CloseIdleConnections()
 	return time.Since(start), true
 }
-- 
GitLab