From fe9c2835ad73f577126ad1e5a9e42a642ba289e3 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Fri, 14 Jul 2017 09:00:47 +0200 Subject: [PATCH] [engine] Add debug logging --- bumblebee/engine.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bumblebee/engine.py b/bumblebee/engine.py index 9a6f68f..8499d2d 100644 --- a/bumblebee/engine.py +++ b/bumblebee/engine.py @@ -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]