diff --git a/lib/storage/metadata/mongoclient/readStream.js b/lib/storage/metadata/mongoclient/readStream.js index c7c00ec76..1a0b0686f 100644 --- a/lib/storage/metadata/mongoclient/readStream.js +++ b/lib/storage/metadata/mongoclient/readStream.js @@ -88,6 +88,7 @@ class MongoReadStream extends Readable { this._cursor = c.find(query, { 'value.location': 0 }).sort({ _id: options.reverse ? -1 : 1, }); + console.log(query); if (options.limit && options.limit !== -1) { this._cursor = this._cursor.limit(options.limit); } @@ -105,6 +106,7 @@ class MongoReadStream extends Readable { if (this._destroyed) { return; } + console.log(doc); let key = undefined; let value = undefined;