Log errors when grafeas export fails

This commit is contained in:
Tobias Furuholm 2018-05-24 13:29:11 +02:00
parent 77df37ca67
commit c37cbe2b66

View File

@ -130,7 +130,10 @@ func RunUpdater(config *UpdaterConfig, datastore database.Datastore, st *stopper
} }
} }
g.Export(datastore) err = g.Export(datastore)
if err != nil {
log.WithError(err).Error("vulnerability export to grafeas server failed")
}
// Unlock the updater. // Unlock the updater.
unlock(datastore, updaterLockName, whoAmI) unlock(datastore, updaterLockName, whoAmI)