mirror of
https://github.com/django/daphne.git
synced 2025-07-14 18:02:17 +03:00
Merge 53bc4c57d7
into 630caed915
This commit is contained in:
commit
2248517295
|
@ -68,3 +68,4 @@ class AccessLogGenerator:
|
||||||
length or "-",
|
length or "-",
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
self.stream.flush()
|
||||||
|
|
|
@ -224,7 +224,7 @@ class CommandLineInterface:
|
||||||
if args.access_log == "-":
|
if args.access_log == "-":
|
||||||
access_log_stream = sys.stdout
|
access_log_stream = sys.stdout
|
||||||
else:
|
else:
|
||||||
access_log_stream = open(args.access_log, "a", 1)
|
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user