Skip to content

Commit

Permalink
chore: add todo for writable in mongo_logger
Browse files Browse the repository at this point in the history
  • Loading branch information
baileympearson committed Dec 14, 2022
1 parent 7b07723 commit 5b18ef0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mongo_logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ function resolveLogPath(
return mongodbLogPath.toLowerCase() === 'stderr' ? process.stderr : process.stdout;
}

// TODO(NODE-4886): check for minimal interface instead of instanceof Writable
if (typeof mongodbLogPath === 'object' && mongodbLogPath instanceof Writable) {
return mongodbLogPath;
}
Expand Down

0 comments on commit 5b18ef0

Please sign in to comment.