Sha256: d5fc8905f5d4c8e652d20fec4b87c8178b6002607c350304ad07beb64cad3728
Contents?: true
Size: 420 Bytes
Versions: 2
Compression:
Stored size: 420 Bytes
Contents
require 'mongo' Mongo::Logging module Mongo module Logging # Remove annoying message on startup def write_logging_startup_message end # Cleanup output def log(level, msg) MongoClient.logger.send(level, msg) end private def log_operation(name, payload, duration) MongoClient.logger.benchmark_trace(name, duration: (duration * 1000), payload: payload) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rocketjob-2.0.0.rc3 | lib/rocket_job/extensions/mongo.rb |
rocketjob-2.0.0.rc2 | lib/rocket_job/extensions/mongo.rb |