Skip to content
This repository has been archived by the owner on Jan 25, 2018. It is now read-only.

Commit

Permalink
Let's see what the Bango notice is (bug 901099)
Browse files Browse the repository at this point in the history
  • Loading branch information
kumar303 committed Aug 2, 2013
1 parent 7069319 commit 74832e6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/bango/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,11 @@ def clean(self):
def clean_notification(self):
try:
data = etree.fromstring(self.cleaned_data['notification'])
except etree.XMLSyntaxError:
log.error('XML parse error')
except etree.XMLSyntaxError, exc:
log.error('XML parse error: {0}: {1}'
.format(exc.__class__.__name__, exc))
log.debug('XML parse error from content: {0}'
.format(self.cleaned_data['notification']))
raise forms.ValidationError('XML parse error')

action = data.find('action')
Expand Down
7 changes: 7 additions & 0 deletions solitude/settings/sites/stage/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,10 @@

S3_AUTH = {'key': private.S3_AUTH_KEY, 'secret': private.S3_AUTH_SECRET}
S3_BUCKET = private.S3_BUCKET

LOGGING = base.LOGGING.copy()
LOGGING['loggers']['s.bango'] = {
'handlers': ['console', 'unicodesyslog'],
'level': 'DEBUG',
'propagate': True
}

0 comments on commit 74832e6

Please sign in to comment.