set default log level to warn in production mode