-
Notifications
You must be signed in to change notification settings - Fork 190
Open
Labels
Description
hi, is it possible to have an output of mongodb calls via mongoid / moped?
i got the moped logs into the console via Moped.logger.level = Logger::DEBUG and they look like this:
MOPED: 127.0.0.1:27017 QUERY database=qn_dev_master collection=users selector={"_id"=>"50ead4f5930e9beb36000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (28.0032ms)
MOPED: 127.0.0.1:27017 QUERY database=qn_dev_master collection=wow_characters selector={"user_id"=>"50ead4f5930e9beb36000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (20.0021ms)
MOPED: 127.0.0.1:27017 COMMAND database=qn_dev_master command={:count=>"roles", :query=>{"$and"=>[{"_id"=>{"$in"=>["50ead4f5930e9beb36000002"]}}], "$or"=>[{"name"=>"admin", "resource_type"=>nil, "resource_id"=>nil}]}} (22.0022ms)
thanks, SeriousM
Edit:
Thanks to @cvalka4 for the pledge of 150$
obahareth