add log json option (#1317)

This commit is contained in:
sadayuki-matsuno
2021-10-07 00:00:01 -07:00
committed by GitHub
parent 9ef8cee36e
commit d780a73297
2 changed files with 2 additions and 1 deletions

View File

@@ -27,7 +27,7 @@ type goCveDictClient struct {
}
func newGoCveDictClient(cnf config.VulnDictInterface, o logging.LogOpts) (*goCveDictClient, error) {
if err := cvelog.SetLogger(o.LogToFile, o.LogDir, o.Debug, false); err != nil {
if err := cvelog.SetLogger(o.LogToFile, o.LogDir, o.Debug, o.LogJSON); err != nil {
return nil, err
}