[engine] Add debug logging

This commit is contained in:
Frederic Junod 2017-07-14 09:00:47 +02:00
parent 753ac453c6
commit fe9c2835ad

View file

@ -3,10 +3,13 @@
import os
import time
import pkgutil
import logging
import importlib
import bumblebee.error
import bumblebee.modules
log = logging.getLogger(__name__)
try:
from ConfigParser import SafeConfigParser
except ImportError:
@ -42,6 +45,8 @@ class Module(object):
self._configFile.read(cfg)
break
if self._configFile is not None and self._configFile.has_section("module-parameters"):
log.debug(self._configFile.items("module-parameters"))
self._widgets = []
if widgets:
self._widgets = widgets if isinstance(widgets, list) else [widgets]