Fix the logger

Request.logger doesn't appear to be set sometimes in Rails, resulting
in "NoMethodError, no method 'error' for nil:nilclass"