From 88178e52e07ca7303e6a9dbe9a033541deb1abba Mon Sep 17 00:00:00 2001 From: John-Michael Mulesa Date: Thu, 16 Oct 2025 13:04:42 -0700 Subject: [PATCH] Add verbose flag for stdout + evt logging. PiperOrigin-RevId: 820362980 --- cabbie.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cabbie.go b/cabbie.go index dfa7013..5ee9afe 100644 --- a/cabbie.go +++ b/cabbie.go @@ -49,6 +49,7 @@ import ( var ( runInDebug = flag.Bool("debug", false, "Run in debug mode") + verbose = flag.Bool("verbose", false, "Enable verbose (stdout) logging") runNormalPriority = flag.Bool("normalpriority", false, "If specified cabbie runs at normal priority rather than lowering the process priority") config = new(Settings) categoryDefaults = []string{"Critical Updates", "Definition Updates", "Security Updates"} @@ -635,6 +636,9 @@ func main() { if *runInDebug { deck.Add(logger.Init(os.Stdout, 0)) } else { + if *verbose { + deck.Add(logger.Init(os.Stdout, 0)) + } evt, err := eventlog.Init(cablib.LogSrcName) if err != nil { fmt.Println(err)