@@ -14,7 +14,7 @@ import (
1414 "k8s.io/client-go/informers"
1515
1616 "github.com/golang/glog"
17- "github.com/stackrox/acs-fleet-manager/fleetshard/config"
17+ cfg "github.com/stackrox/acs-fleet-manager/fleetshard/config"
1818 "github.com/stackrox/acs-fleet-manager/fleetshard/pkg/fleetshardmetrics"
1919 "github.com/stackrox/acs-fleet-manager/fleetshard/pkg/k8s"
2020 "github.com/stackrox/acs-fleet-manager/fleetshard/pkg/runtime"
@@ -35,10 +35,13 @@ func main() {
3535 glog .Info ("Unable to set logtostderr to true" )
3636 }
3737
38- config , err := config .GetConfig ()
38+ config , err := cfg .GetConfig ()
3939 if err != nil {
4040 glog .Fatalf ("Failed to load configuration: %v" , err )
4141 }
42+ if err := flag .Set ("v" , config .LogVerbosity ); err != nil {
43+ glog .Errorf ("Unable to set glog verbosity: %v" , err )
44+ }
4245
4346 ctx , cancel := context .WithTimeout (context .Background (), config .StartupTimeout )
4447 defer cancel ()
@@ -47,6 +50,7 @@ func main() {
4750 glog .Infof ("ClusterID: %s" , config .ClusterID )
4851 glog .Infof ("RuntimePollPeriod: %s" , config .RuntimePollPeriod .String ())
4952 glog .Infof ("AuthType: %s" , config .AuthType )
53+ glog .Infof ("LogVerbosity: %s" , config .LogVerbosity )
5054 glog .Infof ("ManagedDB.Enabled: %t" , config .ManagedDB .Enabled )
5155 glog .Infof ("ManagedDB.SecurityGroup: %s" , config .ManagedDB .SecurityGroup )
5256 glog .Infof ("ManagedDB.SubnetGroup: %s" , config .ManagedDB .SubnetGroup )
0 commit comments