1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 05:40:11 +01:00

Add schema violation logging to aggregator

This commit is contained in:
koplas 2025-06-13 18:24:54 +02:00
parent 161ec1f15c
commit c63bf3db9f
No known key found for this signature in database

View file

@ -53,6 +53,7 @@ func (w *worker) setupProviderFull(provider *provider) error {
return err
}
if len(errors) > 0 {
w.log.Error("invalid prodivider-metadata.json", "err", errors)
return fmt.Errorf(
"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
func (p *processor) full() error {
if p.cfg.runAsMirror() {
p.log.Info("Running in aggregator mode")