Skip to content

Commit

Permalink
initing the klog.InitFlags from the init() function
Browse files Browse the repository at this point in the history
  • Loading branch information
yairsimantov20 committed Jan 3, 2024
1 parent 07e908a commit edc6c45
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -81,5 +79,6 @@ func main() {
}

func init() {
klog.InitFlags(nil)
config.Init()
}

0 comments on commit edc6c45

Please sign in to comment.