From 1d96b5c332c8abe3e49300ce57360c54813fe12a Mon Sep 17 00:00:00 2001 From: Galorhallen Date: Wed, 5 Jan 2022 21:25:14 +0100 Subject: [PATCH] Removed fmt used as log --- internal/pihole/client.go | 2 +- main.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/pihole/client.go b/internal/pihole/client.go index c46bd53..5bb97c6 100644 --- a/internal/pihole/client.go +++ b/internal/pihole/client.go @@ -31,7 +31,7 @@ func NewClient(config *config.Config) *Client { os.Exit(1) } - fmt.Printf("Creating client with config %s\n", config) + log.Printf("Creating client with config %s\n", config) return &Client{ config: config, diff --git a/main.go b/main.go index 8bee1a8..1adb3de 100644 --- a/main.go +++ b/main.go @@ -1,7 +1,6 @@ package main import ( - "fmt" "log" "github.com/eko/pihole-exporter/config" @@ -41,7 +40,7 @@ func main() { case <-serverDead: } - fmt.Println("pihole-exporter HTTP server stopped") + log.Println("pihole-exporter HTTP server stopped") } func buildClients(clientConfigs []config.Config) []*pihole.Client {