diff --git a/confluent/httpapi.py b/confluent/httpapi.py index 2fa3d72d..f6041e60 100644 --- a/confluent/httpapi.py +++ b/confluent/httpapi.py @@ -14,6 +14,7 @@ import eventlet import json import os import string +import traceback import time import urlparse import eventlet.wsgi @@ -228,6 +229,7 @@ def resourcehandler(env, start_response): yield "404 - Request path not recognized" return except exc.InvalidArgumentException: + traceback.print_exc() start_response('400 Bad Request', headers) yield '400 - Bad Request' return diff --git a/confluent/messages.py b/confluent/messages.py index 0611502d..ea9e2aac 100644 --- a/confluent/messages.py +++ b/confluent/messages.py @@ -36,39 +36,63 @@ class ConfluentMessage(object): snippet += '