Set logger to warning to not trigger a notification to admins every time

This commit is contained in:
Peter Pfeufer 2021-11-23 01:02:08 +01:00
parent 20da1ebfab
commit 8faadc23b0
No known key found for this signature in database
GPG Key ID: 6051D2C6AD4EBC27

View File

@ -168,7 +168,7 @@ def _fetch_list_from_gitlab(url: str, max_pages: int = MAX_PAGES) -> list:
except requests.exceptions.RequestException as e: except requests.exceptions.RequestException as e:
error_str = str(e) error_str = str(e)
logger.error( logger.warning(
f'Unable to fetch from GitLab API. Error: {error_str}', f'Unable to fetch from GitLab API. Error: {error_str}',
exc_info=True, exc_info=True,
) )