WIP debug docker container

This commit is contained in:
Gianni Carafa
2023-11-01 20:57:16 +01:00
parent 4a0a8d4869
commit 076d11be8e
8 changed files with 227 additions and 10 deletions

View File

@@ -7,6 +7,7 @@ import (
"net/http"
"net/http/httputil"
"net/url"
"os"
"regexp"
"strings"
"time"
@@ -60,7 +61,9 @@ func FetchSite(c *fiber.Ctx) error {
//client.Timeout = time.Duration(5 * time.Second)
client := http.Client{}
client.Transport = &loggingTransport{}
if os.Getenv("LADDER_DEBUG") == "true" {
client.Transport = &loggingTransport{}
}
fmt.Println("DEBUG1")
resp, err := client.Do(req)