mirror of
https://github.com/django/daphne.git
synced 2025-02-16 16:30:33 +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 "status" in message:
|
||||||
if self._got_response_start:
|
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
|
self._got_response_start = True
|
||||||
# Write code
|
# Write code
|
||||||
status_text = message.get("status_text", None)
|
status_text = message.get("status_text", None)
|
||||||
|
|
|
@ -38,7 +38,6 @@ class Server(object):
|
||||||
channel, message = self.channel_layer.receive_many(channels, block=False)
|
channel, message = self.channel_layer.receive_many(channels, block=False)
|
||||||
if channel:
|
if channel:
|
||||||
delay = 0
|
delay = 0
|
||||||
logging.debug("Server got message on %s", channel)
|
|
||||||
# Deal with the message
|
# Deal with the message
|
||||||
self.factory.dispatch_reply(channel, message)
|
self.factory.dispatch_reply(channel, message)
|
||||||
reactor.callLater(delay, self.backend_reader)
|
reactor.callLater(delay, self.backend_reader)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user