From c37cbe2b66b4bae4cf50190a80f053dc01306b14 Mon Sep 17 00:00:00 2001 From: Tobias Furuholm Date: Thu, 24 May 2018 13:29:11 +0200 Subject: [PATCH] Log errors when grafeas export fails --- updater.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/updater.go b/updater.go index b7caed0e..850f6a4e 100644 --- a/updater.go +++ b/updater.go @@ -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(datastore, updaterLockName, whoAmI)