Skip to content

Commit a0344f0

Browse files
author
marcel corso
committed
actually use the logger passed on the client constructor
1 parent 8ec2d74 commit a0344f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

client.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ func (c *Client) Request(v interface{}, method, path string, data interface{}) e
9696

9797
if c.DebugLog != nil {
9898
if data != nil {
99-
log.Printf("HTTP REQUEST: %s %s %s", method, uri.String(), jsonEncoded)
99+
c.DebugLog.Printf("HTTP REQUEST: %s %s %s", method, uri.String(), jsonEncoded)
100100
} else {
101-
log.Printf("HTTP REQUEST: %s %s", method, uri.String())
101+
c.DebugLog.Printf("HTTP REQUEST: %s %s", method, uri.String())
102102
}
103103
}
104104

@@ -115,7 +115,7 @@ func (c *Client) Request(v interface{}, method, path string, data interface{}) e
115115
}
116116

117117
if c.DebugLog != nil {
118-
log.Printf("HTTP RESPONSE: %s", string(responseBody))
118+
c.DebugLog.Printf("HTTP RESPONSE: %s", string(responseBody))
119119
}
120120

121121
// Status code 500 is a server error and means nothing can be done at this

0 commit comments

Comments
 (0)