Print final config in debug mode
This commit is contained in:
parent
6d5252fb70
commit
0974a97516
2 changed files with 5 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue