lib/logstash/outputs/bson/logstash_timestamp.rb in logstash-output-mongodb-3.1.6 vs lib/logstash/outputs/bson/logstash_timestamp.rb in logstash-output-mongodb-3.1.7

- old
+ new

@@ -23,10 +23,10 @@ module LogStashTimestamp # A time is type 0x09 in the BSON spec. BSON_TYPE = 9.chr.force_encoding(BINARY).freeze - def to_bson(buffer = ByteBuffer.new) + def to_bson(buffer = ByteBuffer.new, validating_keys = Config.validating_keys?) time.to_bson(buffer) end module ClassMethods # Deserialize UTC time from BSON.