From c2437c8246d61093f4e72ddcea922d4af2939bed Mon Sep 17 00:00:00 2001 From: Galorhallen Date: Thu, 10 Feb 2022 11:33:09 +0100 Subject: [PATCH] Fix wrong log function --- internal/pihole/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/pihole/client.go b/internal/pihole/client.go index a471a9d..683961e 100644 --- a/internal/pihole/client.go +++ b/internal/pihole/client.go @@ -159,7 +159,7 @@ func (c *Client) getPHPSessionID() (sessionID string) { resp, err := c.httpClient.Do(req) if err != nil { - log.Error("An error has occured during login to PI-Hole: %v", err) + log.Errorf("An error has occured during login to PI-Hole: %v", err) } for _, cookie := range resp.Cookies() {