Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


mongodb.Connection.DEFAULT_PORT doesn't work with the latest driver, cha... #4

merged 1 commit into from

4 participants


...nged to default mongodb port.


Yes, I spotted this as well. It looks to be an issue with the driver:


I don't think there is a downside of hard coding the default port, it always felt a bit too dependent on the code of the driver anyway, and it's a mongo default, not a driver default.


yep, just noticed this issue as well

@indexzero indexzero merged commit 4dfbdf5 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 17, 2011
  1. @sktaylor

    mongodb.Connection.DEFAULT_PORT doesn't work with the latest driver, …

    sktaylor authored
    …changed to default mongodb port.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/winston-mongodb.js
2  lib/winston-mongodb.js
@@ -24,7 +24,7 @@ var MongoDB = exports.MongoDB = function (options) { = 'mongodb';
this.db = options.db; = || 'localhost';
- this.port = options.port || mongodb.Connection.DEFAULT_PORT;
+ this.port = options.port || 27017;
this.collection = options.collection || "log"; = || true;
this.level = options.level || 'info';
Something went wrong with that request. Please try again.