kaizendorks / pymongo_inmemory

A mongo mocking library with an ephemeral MongoDB running in memory.
MIT License
40 stars 13 forks source link

Reduce / Disable Logging from mongod? #28

Closed lcalisi closed 4 years ago

lcalisi commented 4 years ago

Is there a way to disable (or reduce) logging from mongod? Our test cases are overwhelmed from the server output? We locally patch the file and add "--syslog" to the startup options in https://github.com/kaizendorks/pymongo_inmemory/blob/master/pymongo_inmemory/mongod.py#L93

ekarademir commented 4 years ago

I'm not sure if there is a way, but if that solution works for you, I can create a solution around that. Thanks for letting us know!

Of course if you can think of a solution we are open to PRs.

lcalisi commented 4 years ago

It does work in my local mod by adding that flag.

lcalisi commented 4 years ago

Thank you. This change is working well.