From 0653656526e1ad560f1cbffed20cf99589220c67 Mon Sep 17 00:00:00 2001 From: Kota Kanbe Date: Mon, 19 Feb 2018 13:30:42 +0900 Subject: [PATCH] fix: add some logging for goval-dictionary (#603) --- commands/report.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/commands/report.go b/commands/report.go index 6f746e21..d18698c5 100644 --- a/commands/report.go +++ b/commands/report.go @@ -428,12 +428,17 @@ func (p *ReportCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{} } if c.Conf.OvalDBURL != "" { + util.Log.Infof("oval-dictionary: %s", c.Conf.OvalDBURL) err := oval.Base{}.CheckHTTPHealth() if err != nil { util.Log.Errorf("OVAL HTTP server is not running. err: %s", err) util.Log.Errorf("Run goval-dictionary as server mode before reporting or run with -ovaldb-path option") return subcommands.ExitFailure } + } else { + if c.Conf.OvalDBType == "sqlite3" { + util.Log.Infof("oval-dictionary: %s", c.Conf.OvalDBPath) + } } var res models.ScanResults