mirror of
https://github.com/django/daphne.git
synced 2024-11-22 07:56:34 +03:00
Logging tweaks
This commit is contained in:
parent
a683fecfa6
commit
fff69f64a7
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user