Adam Monsen

March 5, 2012

Squelch Doctrine/MongoDB logging in Symfony2

Filed under: Default — Tags: , , , , , — adam @ 7:30 pm PDT

If you use Doctrine+MongoDB in Symfony2, you may have flood of mongodb queries in your dev environment log. Here’s a snippet of code for app/config/config.yml that will squelch them:

doctrine_mongodb:
  document_managers:
    default:
      logging: false

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress