Skip to content

Commit

Permalink
Add console logs for query and doc in
Browse files Browse the repository at this point in the history
MongoReadStream
  • Loading branch information
KillianG committed Nov 10, 2023
1 parent c6751e6 commit 5fe0098
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/storage/metadata/mongoclient/readStream.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Check failure on line 91 in lib/storage/metadata/mongoclient/readStream.js

View workflow job for this annotation

GitHub Actions / test

Unexpected console statement
if (options.limit && options.limit !== -1) {
this._cursor = this._cursor.limit(options.limit);
}
Expand All @@ -105,6 +106,7 @@ class MongoReadStream extends Readable {
if (this._destroyed) {
return;
}
console.log(doc);

Check failure on line 109 in lib/storage/metadata/mongoclient/readStream.js

View workflow job for this annotation

GitHub Actions / test

Unexpected console statement
let key = undefined;
let value = undefined;

Expand Down

0 comments on commit 5fe0098

Please sign in to comment.