From 9fd0b4a94f0df14e8a5615d4a27edec51513f90e Mon Sep 17 00:00:00 2001 From: Leonard Cohnen Date: Mon, 31 Oct 2022 14:12:38 +0100 Subject: [PATCH] verify: undefine -v flag due to glog collision --- verify/cmd/main.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/verify/cmd/main.go b/verify/cmd/main.go index 4b5008546..4630fbe8b 100644 --- a/verify/cmd/main.go +++ b/verify/cmd/main.go @@ -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")