From dcd7fe51b1402de4441272ada961cef209fbd43f Mon Sep 17 00:00:00 2001 From: Matthieu Gusmini <111724849+matthieugusmini@users.noreply.github.com> Date: Fri, 3 Feb 2023 11:25:04 +0900 Subject: [PATCH] Fix log (#6) Fix logging Added a type conversion to string because the warning was printing a byte slice. --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index 9e56779..5108a47 100644 --- a/client.go +++ b/client.go @@ -251,7 +251,7 @@ func (c *Client) handleEvents(data chan<- Event) error { // If the request for data is rejected, an error will be sent instead of the table schema. if !readSchema && isErrorResponse(token) { c.options.logger.Warn("Failed to read the table schema", - "error", token, + "error", string(token), ) continue }