Downgrade tag filter message to warning and remove whitespace
@@ -101,14 +101,12 @@ class CleanupFunctions:
below_threshold = False
if 'accuracy' in tag and tag['accuracy'] < TAG_MIN_CONFIDENCE:
below_threshold = True
-
if 'name' in tag:
lower_tag = tag['name'].lower()
should_filter = _tag_blacklisted(lower_tag) or below_threshold
else:
- log.error(f'Filtering malformed tag "{tag}" in array "{tags}"')
+ log.warning(f'Filtering malformed tag "{tag}" in array "{tags}"')
should_filter = True
-
if should_filter:
update_required = True
else:
