make access log line buffered

fixes #53
This commit is contained in:
Stratos Moros 2016-10-25 13:52:23 +03:00
parent cd8b709ce8
commit bd0530d147

View File

@ -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