From 2e1c2c4e611d0918389402a16b1b9eb216edf5ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=A4felfinger?= Date: Mon, 25 Mar 2019 22:54:30 +0100 Subject: [PATCH] fixed logoutput --- internal/app/images.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/app/images.go b/internal/app/images.go index 99f19d9..0107a5a 100644 --- a/internal/app/images.go +++ b/internal/app/images.go @@ -274,8 +274,8 @@ func updatePiwigoIdIfAlreadyUploaded(provider ImageMetadataProvider, piwigoCtx p return err } for md5sum, piwigoId := range missingResults { - logrus.Debugf("Setting piwigo id of %s to %d", md5sum, piwigoId) if piwigoId > 0 { + logrus.Debugf("Setting piwigo id of %s to %d", md5sum, piwigoId) err = provider.SavePiwigoIdAndUpdateUploadFlag(md5sum, piwigoId) if err != nil { logrus.Warnf("Could not save piwigo id %d for file %s", piwigoId, md5sum)