1
0
Fork 0

tuned-adm: Print log excerpt when disabling tuning

Print messages logged while 'tuned-adm off' is executing to stderr.

Resolves: rhbz#1538745

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
This commit is contained in:
Ondřej Lysoněk 2018-06-12 10:22:50 +02:00
parent 2c5f2bee2a
commit 5755b24d29

View file

@ -337,6 +337,10 @@ class Admin(object):
return False
def _action_dbus_off(self):
# 25 seconds default DBus timeout + 5 secs safety margin
timeout = 25 + 5
self._log_token = self._controller.log_capture_start(
self._log_level, timeout)
ret = self._controller.off()
if not ret:
self._error("Cannot disable active profile.")