1
0
Fork 0

Print final config in debug mode

This commit is contained in:
Jan Kaluza 2012-02-16 09:28:06 +01:00
parent 6d5252fb70
commit 0974a97516
2 changed files with 5 additions and 1 deletions

View file

@ -111,7 +111,7 @@ class Controller(exports.interfaces.ExportableInterface):
@exports.export("", "s")
def active_profile(self):
return self.config_file.split("/")[-2]
return "default"
@exports.export("", "a{bb}")
def status(self):

View file

@ -25,6 +25,7 @@ import threading
import ConfigParser
import glob
from subprocess import *
import pprint
import tuned.plugins
@ -109,6 +110,9 @@ class Profile(object):
self._plugin_configs[name] = plugin_cfg
def _apply_config(self):
pp = pprint.PrettyPrinter(indent=4)
log.debug("Loaded config: %s" % (pp.pformat(self._plugin_configs)))
for name, cfg in self._plugin_configs.iteritems():
plugin = cfg["type"]
del cfg["type"]