mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
Add schema violation logging to aggregator
This commit is contained in:
parent
161ec1f15c
commit
c63bf3db9f
1 changed files with 1 additions and 1 deletions
|
|
@ -53,6 +53,7 @@ func (w *worker) setupProviderFull(provider *provider) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if len(errors) > 0 {
|
if len(errors) > 0 {
|
||||||
|
w.log.Error("invalid prodivider-metadata.json", "err", errors)
|
||||||
return fmt.Errorf(
|
return fmt.Errorf(
|
||||||
"provider-metadata.json has %d validation issues", len(errors))
|
"provider-metadata.json has %d validation issues", len(errors))
|
||||||
}
|
}
|
||||||
|
|
@ -79,7 +80,6 @@ func (w *worker) fullWork(wg *sync.WaitGroup, jobs <-chan *fullJob) {
|
||||||
|
|
||||||
// full performs the complete lister/download
|
// full performs the complete lister/download
|
||||||
func (p *processor) full() error {
|
func (p *processor) full() error {
|
||||||
|
|
||||||
if p.cfg.runAsMirror() {
|
if p.cfg.runAsMirror() {
|
||||||
p.log.Info("Running in aggregator mode")
|
p.log.Info("Running in aggregator mode")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue