mrsarm / mongotail

Command line tool to log all MongoDB queries in a "tail"able way
https://pypi.org/project/mongotail/
GNU General Public License v3.0
192 stars 17 forks source link

Supposed to work with Mongo 4.0.1? #28

Closed borice closed 6 years ago

borice commented 6 years ago

OSX. MongoDB server version: 4.0.1 mongotail 2.2.0 https://github.com/mrsarm/mongotail (python 2.7.15)

$ mongotail localhost/mydb --level 2 -f Profiling level set to level 2

then exits back to shell.

I should say that: $ mongotail localhost/mydb -f works fine, except doesn't show all the queries.

mrsarm commented 6 years ago

Hi @borice,

Yes, I tested mongotail with the first RC of Mongo 4.0 time ago, should works with the final releases.

I think the problem is that the -f options is overridden the --level option, because the command doesn't work well when you pass more than one option, try to remove the -f options on the first sentence.

Otherwise try just in case with the -v option in the second sentence.