Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Logging starts too early in Rails #3

Open
jamster opened this issue Sep 5, 2011 · 0 comments
Open

Logging starts too early in Rails #3

jamster opened this issue Sep 5, 2011 · 0 comments

Comments

@jamster
Copy link

jamster commented Sep 5, 2011

in Rails 2.3.X, log entries are separated by two newlines. The problem is that the newlines happen at the start of the request cycle (see source). I've noticed that these middlewares start the logging process prior to that which leads to the E20 logs being appended to the previously recorded actions. This seems like an issue to anyone trying to parse the logs and doing simple \n\n splits. Wouldn't it just be better to do the logging after the app.call methods within the middlewares?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant