Skip to content

Commit

Permalink
documents: avoid log in sentry
Browse files Browse the repository at this point in the history
* Avoids to log info in sentry when the document file cannot be downloaded.

Co-Authored-by: Sébastien Délèze <sebastien.deleze@rero.ch>
  • Loading branch information
Sébastien Délèze committed Jan 29, 2021
1 parent 92407fc commit e3cf8a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sonar/modules/documents/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def import_records(records_to_import):
try:
record.add_file_from_url(url, key, **file_data)
except Exception as exception:
current_app.logger.error(
current_app.logger.warning(
'Error during import of file {file} of record '
'{record}: {error}'.format(
file=key,
Expand Down

0 comments on commit e3cf8a1

Please sign in to comment.