1
0
Fork 0

tuned-adm: Don't print superfluous newline after log messages

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
This commit is contained in:
Ondřej Lysoněk 2018-06-11 14:40:42 +02:00
parent 6c1df704ce
commit 0a37ff6373

View file

@ -234,7 +234,8 @@ class Admin(object):
log_msgs = self._controller.log_capture_finish(
self._log_token)
self._log_token = None
self._error(log_msgs)
print(log_msgs, end = "", file = sys.stderr)
sys.stderr.flush()
except TunedAdminDBusException as e:
self._error("Error: Failed to stop log capture. Restart the Tuned daemon to prevent a memory leak.")