mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Switch logging calls to debug, as they're handled higher up by exceptions
This commit is contained in:
@@ -93,13 +93,13 @@ class CachedDocumentManager(models.Manager):
|
|||||||
except urllib2.HTTPError, e:
|
except urllib2.HTTPError, e:
|
||||||
if not created:
|
if not created:
|
||||||
pass
|
pass
|
||||||
logger.error('HTTP Error Code: %s' % e.code, exc_info=sys.exc_info(), extra={'data': {'api-url': url}})
|
logger.debug('HTTP Error Code: %s' % e.code, exc_info=sys.exc_info(), extra={'data': {'api-url': url}})
|
||||||
stat_update_count('eve_proxy_api_exception')
|
stat_update_count('eve_proxy_api_exception')
|
||||||
raise DocumentRetrievalError(e.code)
|
raise DocumentRetrievalError(e.code)
|
||||||
except urllib2.URLError, e:
|
except urllib2.URLError, e:
|
||||||
if not created:
|
if not created:
|
||||||
pass
|
pass
|
||||||
logger.error('URL Error: %s' % e, exc_info=sys.exc_info(), extra={'data': {'api-url': url}})
|
logger.debug('URL Error: %s' % e, exc_info=sys.exc_info(), extra={'data': {'api-url': url}})
|
||||||
stat_update_count('eve_proxy_api_exception')
|
stat_update_count('eve_proxy_api_exception')
|
||||||
raise DocumentRetrievalError(e.reason)
|
raise DocumentRetrievalError(e.reason)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user