fixed small bug where logger was used also on production environment. Makes sense that original intent was to enable only for development environment