From 2043d51bdb0ba95a678b39d0564194620f843618 Mon Sep 17 00:00:00 2001 From: Joao Zanutto Date: Mon, 1 Apr 2024 13:43:10 -0700 Subject: [PATCH] remove unnecesary bind envs --- cmd/greenmask/cmd/root.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/cmd/greenmask/cmd/root.go b/cmd/greenmask/cmd/root.go index 7090d44a..7770a5e7 100644 --- a/cmd/greenmask/cmd/root.go +++ b/cmd/greenmask/cmd/root.go @@ -109,13 +109,6 @@ func init() { log.Fatal().Err(err).Msg("") } - if err := viper.BindEnv("log.level", "LOG_LEVEL"); err != nil { - log.Fatal().Err(err).Msg("") - } - if err := viper.BindEnv("log.format", "LOG_FORMAT"); err != nil { - log.Fatal().Err(err).Msg("") - } - RootCmd.InitDefaultCompletionCmd() RootCmd.InitDefaultHelpCmd() RootCmd.InitDefaultVersionFlag()