Skip to content
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.

Use log package for dump instead of fmt #11

Merged
merged 1 commit into from
Aug 14, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions management/management.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"encoding/json"
"fmt"
"io"
"log"
"net/http"
"net/http/httputil"
"net/url"
Expand Down Expand Up @@ -66,7 +67,6 @@ type Token struct {
// Management API v2.
//
type Management struct {

// Client manages Auth0 Client (also known as Application) resources.
Client *ClientManager

Expand Down Expand Up @@ -262,7 +262,7 @@ func (m *Management) delete(uri string) error {
func (m *Management) dump(req *http.Request, res *http.Response) {
b1, _ := httputil.DumpRequest(req, true)
b2, _ := httputil.DumpResponse(res, true)
fmt.Printf("%s\n%s\b\n", b1, b2)
log.Printf("%s\n%s\b\n", b1, b2)
}

type apiOption func(*Management)
Expand Down