mirror of
https://github.com/django/daphne.git
synced 2024-11-25 09:13: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
|
# If verbosity is 1 or greater, or they told us explicitly, set up access log
|
||||||
access_log_stream = None
|
access_log_stream = None
|
||||||
if args.access_log:
|
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:
|
elif args.verbosity >= 1:
|
||||||
access_log_stream = sys.stdout
|
access_log_stream = sys.stdout
|
||||||
# Import channel layer
|
# Import channel layer
|
||||||
|
|
Loading…
Reference in New Issue
Block a user