This commit is contained in:
Colin Watson 2025-01-23 12:22:40 +01:00 committed by GitHub
commit 2248517295
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -68,3 +68,4 @@ class AccessLogGenerator:
length or "-",
)
)
self.stream.flush()

View File

@ -224,7 +224,7 @@ class CommandLineInterface:
if args.access_log == "-":
access_log_stream = sys.stdout
else:
access_log_stream = open(args.access_log, "a", 1)
access_log_stream = open(args.access_log, "a")
elif args.verbosity >= 1:
access_log_stream = sys.stdout