Switch logging calls to debug, as they're handled higher up by exceptions

This commit is contained in:
2012-08-14 20:53:06 +01:00
parent a70f643da6
commit 5acd1ab4be

View File

@@ -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: