Skip to content

Commit

Permalink
test adding glog package to webhook
Browse files Browse the repository at this point in the history
Signed-off-by: Salvatore Daniele <[email protected]>
  • Loading branch information
SalDaniele committed Jun 6, 2024
1 parent 803af4d commit b84e94f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/webhook/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package main

import (
"flag"

Check failure on line 4 in cmd/webhook/main.go

View workflow job for this annotation

GitHub Actions / Golangci-lint

File is not `goimports`-ed with -local github.com/k8snetworkplumbingwg/sriov-network-operator (goimports)
"os"

"github.com/golang/glog"
"github.com/spf13/cobra"
"os"
"sigs.k8s.io/controller-runtime/pkg/log"

snolog "github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/log"
Expand All @@ -23,6 +23,7 @@ var (
)

func init() {
glog.V(4).Infof("Testing")
snolog.BindFlags(flag.CommandLine)
rootCmd.PersistentFlags().AddGoFlagSet(flag.CommandLine)
}
Expand Down

0 comments on commit b84e94f

Please sign in to comment.