log4mongo / log4mongo-java

log4j appender to MongoDB database
http://log4mongo.org
Apache License 2.0
80 stars 29 forks source link

getDB method is deprecated and starting to cause trouble #37

Closed RobertStewart closed 6 years ago

RobertStewart commented 6 years ago

testAppenderActivateWithAuth() in TestMongoDbAppenderAuth.java uses the deprecated getDB method on the MongoClient to get an object on which addUser can be called. In recent versions of MongoDB, that is resulting in the error message 'Use of SCRAM-SHA-256 requires undigested passwords'. Rather than patching this, we should stop using this deprecated method and create users using a supported method.