Call sys.stdout.flush() just after calling sys.stdout.write() on AuthHandler.log_message()

This commit is contained in:
AKIMOTO Kenta 2021-04-14 21:18:06 +09:00
parent ef8d313042
commit 9d6f9ec39e
1 changed files with 1 additions and 0 deletions

View File

@ -147,6 +147,7 @@ class AuthHandler(BaseHTTPRequestHandler):
sys.stdout.write("%s - %s [%s] %s\n" % (addr, user,
self.log_date_time_string(), format % args))
sys.stdout.flush()
def log_error(self, format, *args):
self.log_message(format, *args)