I assisted in looking into a Rails issue earlier with a friend. After making some modifications to some Ruby code he had an issue receiving exception emails which were generated by Rails. The rails plugin being used to accomplish this is called exception_notification and resolving the problem was simple. As you will see below instead of upgrading the entire plugin a couple lines in one ruby file were modified, the web server restarted, and the exceptions again started functioning properly. Below I display more of the error and the modifications made to resolve the error.
Here are the ones I tried. Hope the comments aren’t too confusing
- Simple Rails Log Query Analyzer
ruby bin/query_log_analyzer.rb ../log/production.log
production.log.1 (small log file ~25MB)Just printed the “Totals” heading with no results
production.log (large log file ~400MB)Ran for a long time and nothing happened