Index: Remove debug log from query.ResetPhotoQuality()

This commit is contained in:
Michael Mayer 2021-10-05 20:30:52 +02:00
parent 7caf1fd549
commit ee017cc841

View file

@ -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))
}