[engine] Add debug logging
This commit is contained in:
parent
753ac453c6
commit
fe9c2835ad
1 changed files with 5 additions and 0 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue