Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Add log if no image backends are configured

Roland Geider54f0a1e19491
diff --git a/wger/nutrition/sync.py b/wger/nutrition/sync.py
index 937e9bd5b..06c3d92c5 100644
--- a/wger/nutrition/sync.py
+++ b/wger/nutrition/sync.py
@@ -50,7 +50,6 @@ from wger.utils.requests import (
)
from wger.utils.url import make_uri
-
logger = logging.getLogger(__name__)
@@ -81,6 +80,8 @@ def fetch_ingredient_image(pk: int):
fetch_image_from_off(ingredient)
elif settings.WGER_SETTINGS['DOWNLOAD_INGREDIENTS_FROM'] == DOWNLOAD_INGREDIENT_WGER:
fetch_image_from_wger_instance(ingredient)
+ else:
+ logger.info('No image backend configured, skipping...')
def fetch_image_from_wger_instance(ingredient):