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:
parent
2c5f2bee2a
commit
5755b24d29
1 changed files with 4 additions and 0 deletions
|
|
@ -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.")
|
||||
|
|
|
|||
Loading…
Reference in a new issue