Skip to content

Commit

Permalink
Initialize klog explicitly
Browse files Browse the repository at this point in the history
Updating go-template-utils causes the klog flags to not be initialized
implicitly.

Signed-off-by: mprahl <mprahl@users.noreply.github.com>
(cherry picked from commit dc1d906)
  • Loading branch information
mprahl authored and openshift-merge-robot committed Oct 25, 2022
1 parent 0750468 commit db9abe6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ func init() {
}

func main() {
klog.InitFlags(nil)

zflags := zaputil.FlagConfig{
LevelName: "log-level",
EncoderName: "log-encoder",
Expand Down

0 comments on commit db9abe6

Please sign in to comment.