From 5fe00985b2002095cc466471e19e62e8b0565ad8 Mon Sep 17 00:00:00 2001 From: KillianG Date: Fri, 10 Nov 2023 20:49:54 +0100 Subject: [PATCH] Add console logs for query and doc in MongoReadStream --- lib/storage/metadata/mongoclient/readStream.js | 2 ++ 1 file changed, 2 insertions(+) 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;