From 85df8edcde92f594ae877d3e1360ead8385b499c Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Sat, 17 Jun 2023 15:19:34 -0700 Subject: [PATCH] Don't error on non-string arguments --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index 5cad740..3395f80 100644 --- a/client.go +++ b/client.go @@ -62,7 +62,7 @@ func (c *Client) Log(ctx context.Context, vals ...any) string { parts := []string{} for i := 0; i < len(vals); i += 2 { - parts = append(parts, fmt.Sprintf("%s=%s", vals[i], vals[i+1])) + parts = append(parts, fmt.Sprintf("%s=%v", vals[i], vals[i+1])) } msg := strings.Join(parts, " ")