added check for development environment with reduced logging for
production.