From bd0530d147f1c57d89c57548355b65ba207d3116 Mon Sep 17 00:00:00 2001 From: Stratos Moros Date: Tue, 25 Oct 2016 13:52:23 +0300 Subject: [PATCH] make access log line buffered fixes #53 --- daphne/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daphne/cli.py b/daphne/cli.py index 0726aa1..6f07b19 100755 --- a/daphne/cli.py +++ b/daphne/cli.py @@ -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