From 08a903b3e0604ddc0814b4a4b3f6d0c55b23fcdb Mon Sep 17 00:00:00 2001 From: Matevz Mihalic Date: Fri, 27 Oct 2023 13:18:52 +0200 Subject: [PATCH] Pass logger to resty client (#101) Co-authored-by: Matevz Mihalic --- client.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client.go b/client.go index 9d579e5..c07918d 100644 --- a/client.go +++ b/client.go @@ -51,6 +51,8 @@ func NewClient(apiKey string, options ...Option) *Client { for _, opt := range options { opt(c) } + c.client.SetLogger(c.log) + if c.config.localEvaluation { go c.pollEnvironment(c.ctxLocalEval) }