cnosole log error and response for heroku