Skip to content

Commit

Permalink
_safe_revert: Decrease log level to warning
Browse files Browse the repository at this point in the history
Co-authored-by: Dave Hall <dave@etianen.com>
  • Loading branch information
tony and etianen committed Sep 25, 2022
1 parent dd78a1c commit 7546b25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reversion/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def _safe_revert(versions):
with transaction.atomic(using=version.db):
version.revert()
except (IntegrityError, ObjectDoesNotExist):
logger.exception('Could not revert to {version}')
logger.warning('Could not revert to {version}', exc_info=True)
unreverted_versions.append(version)
if len(unreverted_versions) == len(versions):
raise RevertError(gettext("Could not save %(object_repr)s version - missing dependency.") % {
Expand Down

0 comments on commit 7546b25

Please sign in to comment.