Permalink
Browse files

Merge pull request #4 from sktaylor/patch-1

mongodb.Connection.DEFAULT_PORT doesn't work with the latest driver, cha...
  • Loading branch information...
2 parents e595ad8 + fa6214e commit 4dfbdf51b5877dfdeca50267a2814123b7818d62 Charlie Robbins committed Feb 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/winston-mongodb.js
View
@@ -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';

0 comments on commit 4dfbdf5

Please sign in to comment.