TorchlightSoftware / mongo-watch

Watches for changes in MongoDB replication log.
MIT License
95 stars 17 forks source link

Pretty fornat and confusion between d / delete and r / remove #15

Closed ghost closed 10 years ago

ghost commented 10 years ago

When I choose pretty format, the operation delete is marked 'd' instead of 'delete'

in formats.coffee there is a case 'r' <=> 'remove', should it be 'delete' ?

bitmage commented 10 years ago

Yes, it doesn't change the original data, just the keys:

https://github.com/TorchlightSoftware/mongo-watch/blob/master/lib/formats.coffee#L14

At this point, there may be people relying upon the current functionality, so it seems unlikely to justify a change. Closing, as this works as intended.