Control debug mode via config file to ensure logging is correctly initialized when debug mode is disabled.
Merge pull request #1 from AlexanderRuf/master

Fixed logging issue