lib/semantic_logger/appender/mongodb.rb in semantic_logger-4.6.0.beta1 vs lib/semantic_logger/appender/mongodb.rb in semantic_logger-4.6.0
- old
+ new
@@ -1,9 +1,9 @@
require 'socket'
begin
require 'mongo'
rescue LoadError
- raise 'Gem mongo is required for logging to MongoDB. Please add the gem "mongo" v2.0 or greater to your Gemfile.'
+ raise LoadError.new('Gem mongo is required for logging to MongoDB. Please add the gem "mongo" v2.0 or greater to your Gemfile.')
end
module SemanticLogger
module Appender
# The Mongo Appender for the SemanticLogger