From edc6c452a049d49b549565e9bd992860a0350bbe Mon Sep 17 00:00:00 2001 From: yair Date: Wed, 3 Jan 2024 19:08:52 +0200 Subject: [PATCH] initing the klog.InitFlags from the init() function --- main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.go b/main.go index 8478f89..b45f2fe 100644 --- a/main.go +++ b/main.go @@ -34,8 +34,6 @@ func initiateHandler(exporterConfig *port.Config, k8sClient *k8s.Client, portCli } func main() { - klog.InitFlags(nil) - k8sConfig := k8s.NewKubeConfig() applicationConfig, err := config.NewConfiguration() if err != nil { @@ -81,5 +79,6 @@ func main() { } func init() { + klog.InitFlags(nil) config.Init() }