From 9d6f9ec39e7b6ec7fdeeb0d2af63e9d56269527d Mon Sep 17 00:00:00 2001 From: AKIMOTO Kenta Date: Wed, 14 Apr 2021 21:18:06 +0900 Subject: [PATCH] Call sys.stdout.flush() just after calling sys.stdout.write() on AuthHandler.log_message() --- nginx-ldap-auth-daemon.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nginx-ldap-auth-daemon.py b/nginx-ldap-auth-daemon.py index 388364c..44afad6 100755 --- a/nginx-ldap-auth-daemon.py +++ b/nginx-ldap-auth-daemon.py @@ -147,6 +147,7 @@ def log_message(self, format, *args): 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)