mirror of
https://github.com/django/daphne.git
synced 2024-11-28 18:53:44 +03:00
Respect access_log=-
This commit is contained in:
parent
3c726e0d51
commit
6ea3dd803e
|
@ -97,7 +97,10 @@ class CommandLineInterface(object):
|
|||
# If verbosity is 1 or greater, or they told us explicitly, set up access log
|
||||
access_log_stream = None
|
||||
if args.access_log:
|
||||
access_log_stream = open(args.access_log, "a")
|
||||
if args.access_log == "-":
|
||||
access_log_stream = sys.stdout
|
||||
else:
|
||||
access_log_stream = open(args.access_log, "a")
|
||||
elif args.verbosity >= 1:
|
||||
access_log_stream = sys.stdout
|
||||
# Import channel layer
|
||||
|
|
Loading…
Reference in New Issue
Block a user