re-implement pull request #1701 - still allow log level to be configurable in dev mode