Skip to content

Commit

Permalink
feat: change logging level
Browse files Browse the repository at this point in the history
Change logging integration to Richie from ERROR to
WARNING level.
relates to #13
  • Loading branch information
igobranco committed Apr 18, 2024
1 parent 94b23eb commit 2210b3c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions richie_openedx_sync/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,17 +119,17 @@ def sync_course_run_information_to_richie(*args, **kwargs) -> Dict[str, bool]:
msg = "Error synchronizing course {} to richie site {} it returned the HTTP status code {}".format(
course_key, richie_url, status_code
)
log.error(e, exc_info=True)
log.error(msg)
log.error(response.content)
log.warning(e, exc_info=True)
log.warning(msg)
log.warning(response.content)
result[richie_url] = False

except requests.exceptions.RequestException as e:
msg = "Error synchronizing course {} to richie site {}".format(
course_key, richie_url
)
log.error(e, exc_info=True)
log.error(msg)
log.warning(e, exc_info=True)
log.warning(msg)
result[richie_url] = False

return result

0 comments on commit 2210b3c

Please sign in to comment.