What caused the rails application crash?

Posted by so1o on Stack Overflow See other posts from Stack Overflow or by so1o
Published on 2010-06-16T02:52:42Z Indexed on 2010/06/16 3:02 UTC
Read the original article Hit count: 232

Filed under:
|
|
|

I'm sure someone can explain this.

we have an application that has been in production for an year. recently we saw an increase in number of support requests for people having difficulty signing into the system. after scratching our head because we couldn't recreate the problem in development, we decided we'll switch on debug logger in production for a month. that was june 5th.

application worked fine with the above change and we were waiting.

then yesterday we noticed that the log files were getting huge so we made another change in production

config.logger = Logger.new("#{RAILS_ROOT}/log/production.log", 50, 1048576)

after this change, the application started crashing while processing a particular file. this particular line of code was

RAILS_DEFAULT_LOGGER.info "Payment Information Request: ", request.inspect

as you can see there was a comma instead of a plus sign. this piece of code was introduced in Mar.

the question is this: why did the application fail now? if changing the debug level caused the application to process this line of code it should have started failing on june 5th! why today. please someone help us. Are we missing the obvious here? if you dont have an answer, at least let us know we aren't the only one that are bonkers.

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about error