Control debug mode via config file to ensure logging is correctly initialized when debug mode is disabled.