lib/semantic_logger/appender/mongodb.rb in semantic_logger-3.1.0 vs lib/semantic_logger/appender/mongodb.rb in semantic_logger-3.2.0

- old
+ new

@@ -169,11 +169,10 @@ h end # Log the message to MongoDB def log(log) - # Ensure minimum log level is met, and check filter - return false if (level_index > (log.level_index || 0)) || !include_message?(log) + return false unless should_log?(log) # Insert log entry into Mongo collection.insert(formatter.call(log, self), w: @write_concern) true end