Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Merged
merged 1 commit into from

4 participants

@sktaylor

...nged to default mongodb port.

@dhendo

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

https://github.com/christkv/node-mongodb-native/issues/407

@sktaylor

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.

@wavded

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
View
2  lib/winston-mongodb.js
@@ -24,7 +24,7 @@ var MongoDB = exports.MongoDB = function (options) {
this.name = 'mongodb';
this.db = options.db;
this.host = options.host || 'localhost';
- this.port = options.port || mongodb.Connection.DEFAULT_PORT;
+ this.port = options.port || 27017;
this.collection = options.collection || "log";
this.safe = options.safe || true;
this.level = options.level || 'info';
Something went wrong with that request. Please try again.