noahd1 / oink

Log parser to identify actions which significantly increase VM heap size
MIT License
1.18k stars 71 forks source link

Oink not logging to STDOUT in Rails 4.1 app on Heroku #33

Open mcoetzee opened 9 years ago

mcoetzee commented 9 years ago

We are using Rails 4.1.4 and currently can't get Oink to log to standard out in Heroku. Our setup: Gemfile:

...
gem 'oink', '~> 0.10.1'
...

application.rb:

...
config.middleware.use Oink::Middleware, :logger => Hodel3000CompliantLogger.new(STDOUT)
...

If using Rails 4 the developers from Heroku suggests using the rails_stdout_logging gem which ensures that your logs will be sent to standard out. We are currently using this gem so I'm wondering whether it is stopping Oink from logging to standard out with the above setup?

Locally Oink is logging just fine.

P.S. I tried setting LOG_LEVEL to info without success

ghost commented 9 years ago

also seeing this on Rails 4.1.1. Works in dev but not heroku. Will share anything I find