Correct teh error reporting for notification URLs

This commit is contained in:
2011-10-02 09:47:42 +01:00
parent ff0b0b487b
commit 175e8b1b28

View File

@@ -116,7 +116,7 @@ def update_user_access(user, **kwargs):
else: else:
conn = urllib2.urlopen(req, timeout=5) conn = urllib2.urlopen(req, timeout=5)
except (urllib2.HTTPError, urllib2.URLError) as e: except (urllib2.HTTPError, urllib2.URLError) as e:
logger.error('Error notifying SSO service: %s' % e.code, exc_info=sys.exc_info(), extra={'data': {'url': url}}) logger.error('Error notifying SSO service: %s' % e, exc_info=sys.exc_info(), extra={'data': {'url': url, 'data': jsonstr, 'auth': hash}})
pass pass
update_service_groups.delay(user_id=user.id) update_service_groups.delay(user_id=user.id)