New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rails 4 log messages appear 2x #1
Comments
|
Thanks for filing this. This is because |
|
You're correct. Procfile Did the trick. Thanks! Note - I did reference https://devcenter.heroku.com/articles/rails4 but glossed over the bit on unicorn configuration, since I wasn't intending on using unicorn just yet. Perhaps add a note that regardless of server, you should either execute rackup or the server binary but not rails s or script rails/server or have a missing Procfile or a Procfile missing an explicit |
|
This drove me crazy for a few hours. Glad to finally find a solution. |
|
Maybe the docs here/at rails_12factor should reflect this? |
|
I'll happily update them and submit a PR if that's a desirable thing. |
|
Brainstorming here what could we do to fix this problem?
|
|
@schneems didn't you fix this in Rails 4.1? |
|
rails/rails#11060 was merged in and fixes this issue. There is nothing we can do for 4.0 closing this issue seems good. |
|
I still have this issue, and this is the most relevant result in Google. So for anyone having the problem, this is something I used in application.rb It'll probably help someone out there. |
|
You can use |
|
I updated the comment. Thanks for the note on 4.1 since having it posted here will sure avoid lots of future headaches. So this is all fixed in 4.1 -currently in beta-, right? |
|
it should be, if it's not open an issue on rails/rails and ping me via On Mon, Dec 30, 2013 at 1:23 PM, David Pelaez notifications@github.comwrote:
|
|
Moving the rails_12factor gem to the production group fixed the double entries for me. |
|
For anyone who stumbles upon this issue from google, make sure that what's actually happening to you is not that your app is actually making duplicate REQUESTS as mine was. See http://stackoverflow.com/questions/3266020/rails-app-logging-duplicate-requests/28299100#28299100 |
|
Got this on 4.2, adding |
|
Same, looks like this issue is back in 4.2. |
|
Open a new issue and give me an example app that reproduces the problem please |
This is a brand new rails 4 rc2 app with the tweaks needed to run on heroku - https://github.com/gkop/heroku-rails-4-duplicate-logs .
Deploy to heroku, tail the logs, hit the / path, and you will see 2 log messages (404) -- http://pastie.org/8053185 .
Heroku staff - I have deployed the app for you - http://heroku-rails-4-duplicate-logs.herokuapp.com/
The text was updated successfully, but these errors were encountered: