From 07fa859cf3ddca0a6ba4b69770f103e8b82ae967 Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Mon, 20 Feb 2017 16:18:18 +0000 Subject: [PATCH] Removed logging and fixed formatting --- client.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/client.go b/client.go index 0be306d..30f5fde 100644 --- a/client.go +++ b/client.go @@ -9,7 +9,6 @@ import ( "fmt" "io" "io/ioutil" - "log" "net/http" "net/url" "path" @@ -564,9 +563,8 @@ func (cli *Client) UploadToContentRepo(content io.Reader, contentType string, co Code: res.StatusCode, } } - log.Printf("Upload request failed: %s", string(contents)) return nil, HTTPError{ - Message: "Upload request failed" + string(contents), + Message: "Upload request failed: " + string(contents), Code: res.StatusCode, } }