Skip to content

Commit 583446e

Browse files
committed
Rework docstring for LogHook.
This commit removes a reference to a now missing struct and replaces it with information about how KeepLog and Loghook interact.
1 parent 4f4c0a6 commit 583446e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ func NewExtendedClient(hc *http.Client) *Client {
109109
return c
110110
}
111111

112-
// PrintErrStrategy is used to log attempts as they happen.
113-
// You know, more visible
112+
// LogHook is used to log attempts as they happen. This function is never called,
113+
// however, if KeepLog is set to true.
114114
type LogHook func(e ErrEntry)
115115

116116
// BackoffStrategy is used to determine how long a retry request should wait until attempted

0 commit comments

Comments
 (0)