Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails 3.2.2 log files unordered, requests intertwined

I recollect getting log files that were nicely ordered, so that you could follow one request, then the next, and so on.

Now, the log files are, as my 4 year old says "all scroggled up", meaning that they are no longer separate, distinct chunks of text. Loggings from two requests get intertwined/mixed up.

For instance:

Started GET /foobar
...
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.8ms)
Patient Load (wait, that's from another request that has nothing to do with foobar!)
[ blank space ]
Something else

This is maddening, because I can't tell what's happening within one single request.

This is running on Passenger.

like image 320
David N. Welton Avatar asked Jul 19 '12 13:07

David N. Welton


1 Answers

I tried to search for the same answer but couldn't find any good info. I'm not sure if you should fix server or rails code.

If you want more info about the issue here is the commit that removed old way of logging https://github.com/rails/rails/commit/04ef93dae6d9cec616973c1110a33894ad4ba6ed

like image 195
holli Avatar answered Dec 26 '22 13:12

holli