From c51804fc5cdfaeef3dc5d362fa067343cf68191b Mon Sep 17 00:00:00 2001 From: jackspirou Date: Fri, 20 Nov 2015 20:27:36 -0600 Subject: [PATCH] moving print debug test to top of file --- main.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index 4122b5d..69219ca 100644 --- a/main.go +++ b/main.go @@ -16,6 +16,8 @@ import ( func main() { + fmt.Println(os.Getenv("DEBUG")) + // plugin settings var repo = drone.Repo{} var build = drone.Build{} @@ -98,7 +100,6 @@ func main() { // set basic auth if a user or user and pass is provided if len(vargs.Auth.Username) > 0 { - fmt.Println("setting basic auth") if len(vargs.Auth.Password) > 0 { req.SetBasicAuth(vargs.Auth.Username, vargs.Auth.Password) } else { @@ -113,9 +114,6 @@ func main() { } defer resp.Body.Close() - fmt.Println(vargs.Debug) - fmt.Println(os.Getenv("DEBUG")) - if vargs.Debug || os.Getenv("DEBUG") == "true" { body, err := ioutil.ReadAll(resp.Body)