diff --git a/README.md b/README.md index 444c340..715e346 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ go-emailacid is a [Go](http://golang.org/) client package for accessing the [Ema Go package -[![GoDoc](https://godoc.org/github.com/diogogmt/go-emailacid?status.png)](https://godoc.org/github.com/diogogmt/go-emailacid) +[![GoDoc](https://godoc.org/github.com/pressly/go-emailacid?status.png)](https://godoc.org/github.com/pressly/go-emailacid) ## Examples diff --git a/client.go b/client.go index 803ee63..2ba17a4 100644 --- a/client.go +++ b/client.go @@ -6,10 +6,8 @@ import ( "net/url" "path" - "github.com/Sirupsen/logrus" "github.com/parnurzeal/gorequest" "github.com/pkg/errors" - "github.com/pressly/lg" ) type EmailAcidClient struct { @@ -29,12 +27,6 @@ type EmailAcidErrorBody struct { } func New(APIKey, password string, clientTypes []ClientType, verbose bool) *EmailAcidClient { - logger := logrus.New() - if verbose { - logger.Level = logrus.DebugLevel - } - lg.DefaultLogger = logger - lg.RedirectStdlogOutput(logger) return &EmailAcidClient{ APIKey: APIKey, Password: password, @@ -68,12 +60,10 @@ func (client *EmailAcidClient) buildRequest(method, resourcePath string) (*goreq } func sendRequest(request *gorequest.SuperAgent, in, out interface{}) (string, error) { - lg.Debugf("req [%s] %s", request.Method, request.Url) res, body, errs := request.Send(in).EndStruct(out) if len(errs) != 0 { return "", errs[0] } - lg.Debugf("res [%d]", res.StatusCode) if res.StatusCode < 200 || res.StatusCode > 299 { var apiError EmailAcidError json.Unmarshal([]byte(body), &apiError) diff --git a/client_test.go b/client_test.go index 8ea1b34..9c33122 100644 --- a/client_test.go +++ b/client_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "github.com/diogogmt/go-emailacid" + "github.com/pressly/go-emailacid" ) var EmailAcidClient *emailacid.EmailAcidClient diff --git a/email_test.go b/email_test.go index df3f967..1375c23 100644 --- a/email_test.go +++ b/email_test.go @@ -3,7 +3,7 @@ package emailacid_test import ( "testing" - emailacid "github.com/diogogmt/go-emailacid" + emailacid "github.com/pressly/go-emailacid" ) func TestEmail(t *testing.T) { diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..7d371b7 --- /dev/null +++ b/go.mod @@ -0,0 +1 @@ +module github.com/pressly/go-emailacid