customink/central_logger — Issue #25: NoMethodError: undefined method `write' for nil:NilClass
Author: agentrock
Created: 2012-01-08 07:18:21+00:00
State: open

NoMethodError: undefined method `write' for nil:NilClass
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.0/lib/active_support/whiny_nil.rb:48:in `method_missing'
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.0/lib/active_support/buffered_logger.rb:109:in `block (2 levels) in flush'
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.0/lib/active_support/buffered_logger.rb:108:in `each'
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.0/lib/active_support/buffered_logger.rb:108:in `block in flush'
:10:in `synchronize'
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.0/lib/active_support/buffered_logger.rb:107:in `flush'
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.0/lib/active_support/buffered_logger.rb:126:in `auto_flush'
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.0/lib/active_support/buffered_logger.rb:72:in `add'
/usr/local/rvm/gems/ruby-1.9.3-p0/bundler/gems/central_logger-1204fb4aba4d/lib/central_logger/mongo_logger.rb:41:in `add'
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.0/lib/active_support/buffered_logger.rb:83:in `debug'
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/mongoid-2.2.0/lib/mongoid/logger.rb:7:in `debug'
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/mongo-1.3.0/lib/mongo/connection.rb:627:in `setup'
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/mongo-1.3.0/lib/mongo/connection.rb:101:in `initialize'
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/mongo-1.3.0/lib/mongo/connection.rb:152:in `new'
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/mongo-1.3.0/lib/mongo/connection.rb:152:in `from_uri'
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/mongoid-2.2.0/lib/mongoid/config/database.rb:89:in `master'
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/mongoid-2.2.0/lib/mongoid/config/database.rb:22:in `configure'
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/mongoid-2.2.0/lib/mongoid/config.rb:317:in `configure_databases'
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/mongoid-2.2.0/lib/mongoid/config.rb:120:in `from_hash'
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/mongoid-2.2.0/lib/mongoid/config.rb:137:in `load!'
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/mongoid-2.2.0/lib/mongoid.rb:145:in `load!'
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/mongoid-2.2.0/lib/mongoid/railtie.rb:63:in `block in '