3

I am trying to debug an issue with one of my rails controllers. It works fine locally in development but pushing to heroku there is inconsistent behavior.

I have set config.log_level = :debug in /app/config/production.rb I have tried addin puts and logger.debug statments to the controller.

I do see the output locally but am not seeing it on heroku. Per the heroku docs at https://devcenter.heroku.com/articles/logging This shouldn't be that hard.

What am I missing?

1
  • Have you tried Rails.logger 'This is what I want to log'? Commented Sep 24, 2012 at 16:28

1 Answer 1

2

I had to set these config values to false to reload the code app/config/environments/production.rb

config.cache_classes = false                                                                                                                                                 
config.action_controller.perform_caching = false
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.