verify: undefine -v flag due to glog collision

This commit is contained in:
Leonard Cohnen 2022-10-31 14:12:38 +01:00 committed by 3u13r
parent 4f8cbd9221
commit 9fd0b4a94f

View File

@ -22,10 +22,12 @@ import (
func main() {
provider := flag.String("cloud-provider", "", "cloud service provider this binary is running on")
verbosity := flag.Int("v", 0, logger.CmdLineVerbosityDescription)
// FIXME: define flag again once its definition no longer collides with glog.
// This should happen as soon as https://github.com/google/go-sev-guest/issues/23 is merged and consumed by us.
verbosity := 0 // flag.Int("v", 0, logger.CmdLineVerbosityDescription)
flag.Parse()
log := logger.New(logger.JSONLog, logger.VerbosityFromInt(*verbosity))
log := logger.New(logger.JSONLog, logger.VerbosityFromInt(verbosity))
log.With(zap.String("version", constants.VersionInfo), zap.String("cloudProvider", *provider)).
Infof("Constellation Verification Service")