# Production\_log\_analyzer & observer classes

**URL:** <https://www.ruby-forum.com/t/production-log-analyzer-observer-classes/115694>\
**Category:** Rails\
**Created:** [September 27, 2007, 6:29pm UTC](https://www.ruby-forum.com/t/production-log-analyzer-observer-classes/115694 "2007-09-27T18:29:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ddancer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ecb155/32.png) [@ddancer](https://www.ruby-forum.com/u/ddancer)\
**Post date:** [September 27, 2007, 6:29pm UTC](https://www.ruby-forum.com/t/production-log-analyzer-observer-classes/115694/1 "2007-09-27T18:29:39Z")

</div>

Hello,

I’ve installed production\_log\_analyzer but it throws an exception when I  
have an observer class activated. It doesn’t matter what the observer  
class has, this happens even if the observer class is an empty stub.

any ideas?

excecption stack…

* * *

/var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active\_record/base.rb:1235:in  
`+' /var/lib/gems/1.8/gems/production_log_analyzer-1.5.0/lib/production_log/analyzer.rb:11:in`sum’  
/var/lib/gems/1.8/gems/activesupport-1.4.2/lib/active\_support/inflector.rb:250:in  
`inject' /var/lib/gems/1.8/gems/production_log_analyzer-1.5.0/lib/production_log/analyzer.rb:11:in`inject’  
/var/lib/gems/1.8/gems/production\_log\_analyzer-1.5.0/lib/production\_log/analyzer.rb:11:in  
`sum' /var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/observer.rb:170:in`observed\_subclasses’  
/var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active\_record/observer.rb:149:in  
`initialize' /var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/observer.rb:38:in`instantiate\_observers’  
/var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active\_record/observer.rb:36:in  
`each' /var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/observer.rb:36:in`instantiate\_observers’  
/var/lib/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:78:in  
`process' /var/lib/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in`synchronize’  
/var/lib/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in  
`process' /var/lib/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:618:in`process\_client’  
/var/lib/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in `each' /var/lib/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in`process\_client’  
/var/lib/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run' /var/lib/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in`initialize’  
/var/lib/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `new' /var/lib/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in`run’  
/var/lib/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `initialize' /var/lib/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in`new’  
/var/lib/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `run' /var/lib/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:271:in`run’  
/var/lib/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in  
`each' /var/lib/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in`run’  
/var/lib/gems/1.8/gems/mongrel-1.0.1/bin/mongrel\_rails:127:in `run' /var/lib/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/command.rb:211:in`run’  
/var/lib/gems/1.8/gems/mongrel-1.0.1/bin/mongrel\_rails:243  
/var/lib/gems/1.8/bin/mongrel\_rails:18:in `load’  
/var/lib/gems/1.8/bin/mongrel\_rails:18
