mirror of
https://github.com/django/daphne.git
synced 2024-11-22 07:56:34 +03:00
Merge pull request #54 from indevgr/access-log-buffering
Access log buffering
This commit is contained in:
commit
3c8c21b352
|
@ -126,7 +126,7 @@ class CommandLineInterface(object):
|
|||
if args.access_log == "-":
|
||||
access_log_stream = sys.stdout
|
||||
else:
|
||||
access_log_stream = open(args.access_log, "a")
|
||||
access_log_stream = open(args.access_log, "a", 1)
|
||||
elif args.verbosity >= 1:
|
||||
access_log_stream = sys.stdout
|
||||
# Import channel layer
|
||||
|
|
|
@ -314,7 +314,7 @@ class HTTPFactory(http.HTTPFactory):
|
|||
"Got invalid WebSocket reply message on %s - "
|
||||
"contains unknown keys %s (looking for either {'accept', 'text', 'bytes', 'close'})" % (
|
||||
channel,
|
||||
unknown_message_keys,
|
||||
unknown_keys,
|
||||
)
|
||||
)
|
||||
if message.get("accept", None) and protocol.state == protocol.STATE_CONNECTING:
|
||||
|
|
Loading…
Reference in New Issue
Block a user