From 5d891e70e9c95e76767a401c4b397ae83be3b008 Mon Sep 17 00:00:00 2001 From: Adrian Gallagher Date: Tue, 26 Mar 2019 09:50:22 +1100 Subject: [PATCH] Cleanup: rm/adjust non-needed println's/warnings --- communications/smsglobal/smsglobal_test.go | 2 -- exchanges/bitflyer/bitflyer_test.go | 4 ++-- helpers_test.go | 2 -- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/communications/smsglobal/smsglobal_test.go b/communications/smsglobal/smsglobal_test.go index 8344e6ff..7a379eb2 100644 --- a/communications/smsglobal/smsglobal_test.go +++ b/communications/smsglobal/smsglobal_test.go @@ -1,7 +1,6 @@ package smsglobal import ( - "log" "testing" "github.com/thrasher-/gocryptotrader/communications/base" @@ -65,7 +64,6 @@ func TestAddContact(t *testing.T) { if err != nil { t.Error("test failed - SMSGlobal AddContact() error", err) } - log.Println(s.Contacts) err = s.AddContact(Contact{Name: "StyleGherkin", Number: "1231424", Enabled: true}) if err == nil { t.Error("test failed - SMSGlobal AddContact() error") diff --git a/exchanges/bitflyer/bitflyer_test.go b/exchanges/bitflyer/bitflyer_test.go index 60404ed6..25a03207 100644 --- a/exchanges/bitflyer/bitflyer_test.go +++ b/exchanges/bitflyer/bitflyer_test.go @@ -1,13 +1,13 @@ package bitflyer import ( - "log" "testing" "github.com/thrasher-/gocryptotrader/common" "github.com/thrasher-/gocryptotrader/config" "github.com/thrasher-/gocryptotrader/currency" exchange "github.com/thrasher-/gocryptotrader/exchanges" + log "github.com/thrasher-/gocryptotrader/logger" ) // Please supply your own keys here for due diligence testing @@ -77,7 +77,7 @@ func TestGetAddressInfoCA(t *testing.T) { t.Error("test failed - Bitflyer - GetAddressInfoCA() error:", err) } if v.UnconfirmedBalance == 0 || v.ConfirmedBalance == 0 { - log.Println("WARNING!: Donation wallet is empty :( - please consider donating") + log.Warn("Donation wallet is empty :( - please consider donating") } } diff --git a/helpers_test.go b/helpers_test.go index 51b6db09..1036561d 100644 --- a/helpers_test.go +++ b/helpers_test.go @@ -1,7 +1,6 @@ package main import ( - "log" "testing" "github.com/thrasher-/gocryptotrader/common" @@ -236,7 +235,6 @@ func TestMapCurrenciesByExchange(t *testing.T) { t.Fatal("Unexpected result") } - log.Println(pairs) if len(pairs) != 2 { t.Fatal("Unexpected result") }