From fa20db0df48e2a13a2247f1e1d1e156231f4ccba Mon Sep 17 00:00:00 2001 From: Denis Makogon Date: Thu, 6 Jul 2017 18:25:25 +0300 Subject: [PATCH] Remove trace message on client init --- fn/client/api.go | 1 - fn/routes_test.go | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/fn/client/api.go b/fn/client/api.go index 8f23c9ecb..7360b9ba0 100644 --- a/fn/client/api.go +++ b/fn/client/api.go @@ -21,7 +21,6 @@ func Host() string { if err != nil { log.Fatalln("Couldn't parse API URL:", err) } - log.Println("trace: Host:", u.Host) return u.Host } diff --git a/fn/routes_test.go b/fn/routes_test.go index fba875775..e87b495eb 100644 --- a/fn/routes_test.go +++ b/fn/routes_test.go @@ -4,7 +4,7 @@ import ( "net/http" "os" "testing" - "gitlab-odx.oracle.com/odx/functions/fn/utils" + "gitlab-odx.oracle.com/odx/functions/fn/client" ) func TestEnvAsHeader(t *testing.T) { @@ -18,7 +18,7 @@ func TestEnvAsHeader(t *testing.T) { } for _, selectedEnv := range cases { req, _ := http.NewRequest("GET", "http://www.example.com", nil) - utils.EnvAsHeader(req, selectedEnv) + client.EnvAsHeader(req, selectedEnv) if found := req.Header.Get("k"); found != expectedValue { t.Errorf("not found expected header: %v", found) }