Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

heroku rails logging not showing output?

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?

like image 868
kevzettler Avatar asked Nov 16 '25 17:11

kevzettler


1 Answers

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
like image 96
kevzettler Avatar answered Nov 19 '25 08:11

kevzettler



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!