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)