Closed jsbohnert closed 1 year ago
Hi @jsbohnert , thanks for reporting this bug, and provide a PR, going to check it soon.
Thank you, and thanks for the valuable tool - very handy!
I've published the pre-release 3.1.1b1 with your patch, you can update to give it a try with:
$ pip install -U mongotail==3.1.1b1
Or use the Docker version using the tag 3.1.1b1
.
Discovered via the nodeJS mongo native driver issuing
findOneAndDelete()
commands where the 'command' was cased asfindAndModify
, instead of thefindandmodify
currently expected by the text matching in mongotail.Additional testing showed that it is possible to generate a similar failure with Map-Reduce commands as Mongo similarly will honor casing of 'mapreduce' or 'mapReduce' as the command.
Repro example - findAndModify vs findandmodify:
Working Mongo client invocations:
Failing Mongo client invocation (also as issued by JS driver):
mongotail output:
Repro example - mapReduce vs mapreduce:
Working Mongo client invocations:
Failing Mongo client invocation
mongotail output: