diff options
author | MaZderMind <git@mazdermind.de> | 2016-08-16 12:48:08 +0200 |
---|---|---|
committer | MaZderMind <git@mazdermind.de> | 2016-08-16 12:48:08 +0200 |
commit | 0d66d85cbd8d1e848b6d44a59e7babad125c5833 (patch) | |
tree | c5dacd017b6f196f2585b6cd1c86fe3b7cefd1dc /voctocore | |
parent | eb21c3e832abdeda6c928995c9d4bf8fbb2efb33 (diff) |
modify imports so that config get's imported after configuring the logging subsystem
Diffstat (limited to 'voctocore')
-rwxr-xr-x | voctocore/voctocore.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/voctocore/voctocore.py b/voctocore/voctocore.py index fa712f7..1d04c4f 100755 --- a/voctocore/voctocore.py +++ b/voctocore/voctocore.py @@ -23,13 +23,16 @@ GObject.threads_init() # import local classes from lib.args import Args -from lib.pipeline import Pipeline -from lib.controlserver import ControlServer from lib.loghandler import LogHandler # main class class Voctocore(object): def __init__(self): + # import local which use the config or the logging system + # this is required, so that we can cnfigure logging, before reading the config + from lib.pipeline import Pipeline + from lib.controlserver import ControlServer + self.log = logging.getLogger('Voctocore') self.log.debug('creating GObject-MainLoop') self.mainloop = GObject.MainLoop() |