Hide known warnings in unit test output

(imported from commit 484b383b7466f4428bbde55344775687149406b9)
This commit is contained in:
Leo Franchi 2013-05-20 15:45:44 -04:00
parent 6f42b90d23
commit 813073ec32
1 changed files with 2 additions and 1 deletions

View File

@ -1696,6 +1696,7 @@ def api_jira_webhook(request):
content += "\n> %s" % (comment,)
else:
# Unknown event type
if not settings.TEST_SUITE:
logging.warning("Got JIRA event type we don't understand: %s" % (event,))
return json_error("Unknown JIRA event type")