-
Notifications
You must be signed in to change notification settings - Fork 124
Open
Labels
Description
So, due to a change in mongodb atlas server, I've had to upgrade the mongodb driver to 4.1+ (currently 4.1.4), but, when I try to use windston-mongodb after that update I get:
{
level: 'trace',
db: 'mongodb+srv://***/***?retryWrites=true&w=majority',
collection: 'server_logs',
options: { useNewUrlParser: true, useUnifiedTopology: true }
}
winston-mongodb: error initialising logger MongoParseError: Load balancer mode requires driver version 4+
at QueryReqWrap.callback (***\project\node_modules\winston-mongodb\node_modules\mongodb\lib\core\uri_parser.js:111:27)
at QueryReqWrap.onresolve [as oncomplete] (dns.js:212:10)
at QueryReqWrap.callbackTrampoline (internal/async_hooks.js:130:17)
Does this package not support driver 4.1+? or do I just have something misconfigured?
zowebs, yurijmikhalevich, antoineTGD and Pratik78360