Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7572861
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T16:02:15+00:00 2026-05-30T16:02:15+00:00

I am running Rails with the MongoMapper plugin. In dev mode my console is

  • 0

I am running Rails with the MongoMapper plugin. In dev mode my console is being flooded with messages for each MongoDB query, like these:

MONGODB (0ms) mydb['templates'].find({:_type=>{"$in"=>["DS::QPM::Template"]},
 :_id=>BSON::ObjectId('4e9f815f10b6110e9b000001')}).limit(-1)

The find queries are fine. It’s when it dumps 5mb of update query to my console that it starts annoying me. Anyone know how to turn these off? My Google-fu is not strong enough to find an answer to this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T16:02:17+00:00Added an answer on May 30, 2026 at 4:02 pm

    When you connect to MongoMapper, just add a :logger option. Something like this:

    MongoMapper.connection = Mongo::Connection.new('localhost', 27017, :logger => Rails.logger)
    

    That will make it log to the regular Rails log. See here for the docs on this: http://api.mongodb.org/ruby/current/Mongo/Connection.html#constructor_details

    Note though that this says the default is “nil”, so I’m not sure why your instance is logging anything at all without you having explicitly set it up to do so.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a rails application running on a Linux server. I would like to
I have site running rails application and resque workers running in production mode, on
I'm running Rails 3, and I've got several controllers that all do something like
We're on mongodb 2.0.0, mongo gem 1.4.1, mongo_mapper 0.9.2, rails 3.0.6. We love MongoMapper,
I am trying to install restful_authentication plugin in my machine which is running rails
I have an app running Rails 2.3.5 that has a JSON API for much
I am running Rails 3 Beta2 and attempting to get Autotest working with rspec.
What are the major gotchas and tricks when running Rails on a small slice
Running a rails site right now using SQLite3. About once every 500 requests or
I running a rails project and I am displaying a textfield that can often

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.