In my production app, I occasionally get the "We''re sorry..." error screen. But in most (if not all) cases, there is no corresponding error in the logs. This makes it difficult to track down bugs. It seems that what''s happening is that certain errors are either so fundamental, or happen so early in the response process, that they don''t hit the logs. My question is, is there any way to trap information whenever Rails displays that error screen? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Nov 15, 2007 3:16 PM, Brian Ablaza <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > In my production app, I occasionally get the "We''re sorry..." error > screen. But in most (if not all) cases, there is no corresponding error > in the logs. This makes it difficult to track down bugs. > > It seems that what''s happening is that certain errors are either so > fundamental, or happen so early in the response process, that they don''t > hit the logs. > > My question is, is there any way to trap information whenever Rails > displays that error screen?config.log_level = :debug -- Greg Donald http://destiney.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Greg Donald wrote:> On Nov 15, 2007 3:16 PM, Brian Ablaza <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > wrote: >> displays that error screen? > config.log_level = :debug > > > -- > Greg Donald > http://destiney.com/Thanks for the rapid response. But doesn''t "debug" want to log everything (like SQL queries)? I just want to log some info whenever Rails throws an error. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---