mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Flush stream after writing service messages
sys.stdout is buffered by default if redirected to a file. This may causes automated installation to appear hung. Flush the stream so that messages are written immediately.
This commit is contained in:
parent
f8de527d83
commit
e8e88ed208
@ -55,6 +55,7 @@ def print_msg(message, output_fd=sys.stdout):
|
|||||||
root_logger.debug(message)
|
root_logger.debug(message)
|
||||||
output_fd.write(message)
|
output_fd.write(message)
|
||||||
output_fd.write("\n")
|
output_fd.write("\n")
|
||||||
|
output_fd.flush()
|
||||||
|
|
||||||
|
|
||||||
class Service(object):
|
class Service(object):
|
||||||
|
Loading…
Reference in New Issue
Block a user