Skip to content

Commit

Permalink
fix(url parser): use warn instead of info
Browse files Browse the repository at this point in the history
  • Loading branch information
Jessica Lord authored and mbroadst committed Oct 24, 2017
1 parent 642e39e commit 40ed27d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/url_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ module.exports = function(url, options) {
break;
default:
var logger = Logger('URL Parser');
logger.info(`${name} is not supported`);
logger.warn(`${name} is not supported as a connection string option`);
break;
}
});
Expand Down
4 changes: 2 additions & 2 deletions test/functional/url_parser_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -563,12 +563,12 @@ describe('Url Parser', function() {
Logger.setCurrentLogger(function(msg, context) {
expect(msg).to.exist;
expect(msg).to.contain('not supported');
expect(context.type).to.equal('info');
expect(context.type).to.equal('warn');
expect(context.className).to.equal('URL Parser');
logged = true;
});

Logger.setLevel('info');
Logger.setLevel('warn');

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

0 comments on commit 40ed27d

Please sign in to comment.