mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-18 12:19:29 +00:00
Log a info line on a API error
This commit is contained in:
@@ -108,6 +108,7 @@ class CachedDocumentManager(models.Manager):
|
||||
doc.save()
|
||||
doc = self.get(pk=doc.pk)
|
||||
elif error in ROLLBACK_ERRORS and not created:
|
||||
logger.info("API Error %s encountered" % error, extra={'data': {'api-url': url, 'error': error, 'document': doc.body}})
|
||||
doc = self.get(pk=doc.pk)
|
||||
|
||||
# If this is user related, write a log instance
|
||||
|
||||
Reference in New Issue
Block a user