Skip to content

Commit 40ed27d

Browse files
Jessica Lordmbroadst
Jessica Lord
authored andcommitted
fix(url parser): use warn instead of info
1 parent 642e39e commit 40ed27d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/url_parser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ module.exports = function(url, options) {
440440
break;
441441
default:
442442
var logger = Logger('URL Parser');
443-
logger.info(`${name} is not supported`);
443+
logger.warn(`${name} is not supported as a connection string option`);
444444
break;
445445
}
446446
});

test/functional/url_parser_tests.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -563,12 +563,12 @@ describe('Url Parser', function() {
563563
Logger.setCurrentLogger(function(msg, context) {
564564
expect(msg).to.exist;
565565
expect(msg).to.contain('not supported');
566-
expect(context.type).to.equal('info');
566+
expect(context.type).to.equal('warn');
567567
expect(context.className).to.equal('URL Parser');
568568
logged = true;
569569
});
570570

571-
Logger.setLevel('info');
571+
Logger.setLevel('warn');
572572

573573
parse('mongodb://localhost/db?minPoolSize=100');
574574
expect(logged).to.be.true;

0 commit comments

Comments
 (0)