File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ func Initialize(baseCtx context.Context) context.Context {
7979 auth .InitializeAuth ()
8080 jobs .InitializeJobs (ctx )
8181 validation .InitializeVirusTotal ()
82+ util .PrintFeatureFlags ()
8283
8384 return ctx
8485}
Original file line number Diff line number Diff line change 11package util
22
3- import "github.com/spf13/viper"
3+ import (
4+ "github.com/rs/zerolog/log"
5+ "github.com/spf13/viper"
6+ )
47
58type FeatureFlag string
69
@@ -11,3 +14,9 @@ const (
1114func FlagEnabled (flag FeatureFlag ) bool {
1215 return viper .GetBool ("feature_flags." + string (flag ))
1316}
17+
18+ func PrintFeatureFlags () {
19+ for _ , flag := range []FeatureFlag {FeatureFlagAllowMultiTargetUpload } {
20+ log .Info ().Str ("flag" , string (flag )).Bool ("enabled" , FlagEnabled (flag )).Msg ("flag" )
21+ }
22+ }
You can’t perform that action at this time.
0 commit comments