Commit 5755b24d authored by Ondřej Lysoněk's avatar Ondřej Lysoněk

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: default avatarOndřej Lysoněk <olysonek@redhat.com>
parent 2c5f2bee
...@@ -337,6 +337,10 @@ class Admin(object): ...@@ -337,6 +337,10 @@ class Admin(object):
return False return False
def _action_dbus_off(self): 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() ret = self._controller.off()
if not ret: if not ret:
self._error("Cannot disable active profile.") self._error("Cannot disable active profile.")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment