Skip to content
Snippets Groups Projects
Unverified Commit 8c887bbb authored by Tomasz Maczukin's avatar Tomasz Maczukin
Browse files

Add debug messages for dockerClient type casting

parent da0557dd
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,7 @@ import ( ...@@ -5,6 +5,7 @@ import (
"net/http" "net/http"
"os" "os"
"path/filepath" "path/filepath"
"reflect"
"strconv" "strconv"
"time" "time"
...@@ -18,7 +19,19 @@ var dockerDialer = &net.Dialer{ ...@@ -18,7 +19,19 @@ var dockerDialer = &net.Dialer{
} }
func httpTransportFix(host string, client Client) { func httpTransportFix(host string, client Client) {
logrus.WithFields(logrus.Fields{
"client": client,
"type": reflect.TypeOf(client),
}).Debugln("[httpTransportFix] Received client:")
dockerClient, ok := client.(*docker.Client) dockerClient, ok := client.(*docker.Client)
logrus.WithFields(logrus.Fields{
"dockerClient": client,
"dockerClientType": reflect.TypeOf(client),
"is_ok": ok,
}).Debugln("[httpTransportFix] Client type asserting:")
if !ok { if !ok {
return return
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment