Call sys.stdout.flush() just after calling sys.stdout.write() on AuthHandler.log_message()
This commit is contained in:
parent
ef8d313042
commit
9d6f9ec39e
|
|
@ -147,6 +147,7 @@ class AuthHandler(BaseHTTPRequestHandler):
|
||||||
|
|
||||||
sys.stdout.write("%s - %s [%s] %s\n" % (addr, user,
|
sys.stdout.write("%s - %s [%s] %s\n" % (addr, user,
|
||||||
self.log_date_time_string(), format % args))
|
self.log_date_time_string(), format % args))
|
||||||
|
sys.stdout.flush()
|
||||||
|
|
||||||
def log_error(self, format, *args):
|
def log_error(self, format, *args):
|
||||||
self.log_message(format, *args)
|
self.log_message(format, *args)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue