From ee017cc841af77d84a971b88bf938a8f1a4adbf0 Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Tue, 5 Oct 2021 20:30:52 +0200 Subject: [PATCH] Index: Remove debug log from query.ResetPhotoQuality() --- internal/query/photo.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/query/photo.go b/internal/query/photo.go index 8bf13f782..899ca3362 100644 --- a/internal/query/photo.go +++ b/internal/query/photo.go @@ -91,9 +91,7 @@ func ResetPhotoQuality() error { Where("id NOT IN (SELECT photo_id FROM files WHERE file_primary = 1 AND file_missing = 0 AND file_error = '' AND deleted_at IS NULL)"). Update("photo_quality", -1) - if res.RowsAffected == 0 { - log.Debugf("index: found no additional broken photos [%s]", time.Since(start)) - } else { + if res.RowsAffected > 0 { log.Infof("index: flagged %s as hidden [%s]", english.Plural(int(res.RowsAffected), "broken photo", "broken photos"), time.Since(start)) }