diff options
Diffstat (limited to 'LightInstallation.py')
-rw-r--r-- | LightInstallation.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/LightInstallation.py b/LightInstallation.py index 2eb03c9..62d3f6a 100644 --- a/LightInstallation.py +++ b/LightInstallation.py @@ -97,6 +97,8 @@ class LightInstallation(object): def registerComponents(self, components): for component in components: + cid = compReg.registerComponent(component) + main_log.debug(cid + ' registered') cid = component['Id'] if cid == None: #TODO: determine if componenent is critical, and if so, die main_log.error('Components must be registered with Ids. Component not registered') @@ -118,7 +120,7 @@ class LightInstallation(object): exec('from ' + module+'.'+className + ' import *') main_log.debug(module +'.' +className + 'imported') except Exception as inst: - main_log.error('Error importing ' + module+'.'+'.className. Component not\ + main_log.error('Error importing ' + module+'.'+className+ '. Component not\ initialized.') main_log.error(str(inst)) continue @@ -132,6 +134,7 @@ class LightInstallation(object): main_log.debug(className + 'initialized with args ' + str(args)) #right except Exception as inst: + pdb.set_trace() main_log.error('Failure while initializing ' + className + ' with ' + str(args)) main_log.error(str(inst)) |