How to disable console.logs?
Answered
The logs that are automatically printed into the console after insert() and update() seem to slow down performance. Is there a way to disable them?
The logs that are automatically printed into the console after insert() and update() seem to slow down performance. Is there a way to disable them?
There is not way to turn off these logs for insert and update. To be compatible with the mongo shell, both methods call print internally.
There is a work-around solution, use insertOne/InsertMany and updateOne/updateMany to replace insert/update method.
There is not way to turn off these logs for insert and update. To be compatible with the mongo shell, both methods call print internally.
There is a work-around solution, use insertOne/InsertMany and updateOne/updateMany to replace insert/update method.
Replies have been locked on this page!