From fff69f64a7aad2f9def26d9d3a7b79950f8bfb5b Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Tue, 23 Feb 2016 22:14:50 +0000 Subject: [PATCH] Logging tweaks --- daphne/http_protocol.py | 2 +- daphne/server.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/daphne/http_protocol.py b/daphne/http_protocol.py index 9986393..666ebf7 100755 --- a/daphne/http_protocol.py +++ b/daphne/http_protocol.py @@ -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) diff --git a/daphne/server.py b/daphne/server.py index 332b231..ab19d11 100755 --- a/daphne/server.py +++ b/daphne/server.py @@ -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)