Logging tweaks

This commit is contained in:
Andrew Godwin 2016-02-23 22:14:50 +00:00
parent a683fecfa6
commit fff69f64a7
2 changed files with 1 additions and 2 deletions

View File

@ -133,7 +133,7 @@ class WebRequest(http.Request):
"""
if "status" in message:
if self._got_response_start:
raise ValueError("Got multiple Response messages!")
raise ValueError("Got multiple Response messages for %s!" % self.reply_channel)
self._got_response_start = True
# Write code
status_text = message.get("status_text", None)

View File

@ -38,7 +38,6 @@ class Server(object):
channel, message = self.channel_layer.receive_many(channels, block=False)
if channel:
delay = 0
logging.debug("Server got message on %s", channel)
# Deal with the message
self.factory.dispatch_reply(channel, message)
reactor.callLater(delay, self.backend_reader)