Permalink
Browse files

Update generic-pool to 2.x and add pool name to logging

  • Loading branch information...
1 parent 20b3483 commit 48ef63c81f1a05c6170755a67aa147852757f5a3 @smfreegard smfreegard committed Nov 19, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 package.json
  2. +1 −1 smtp_client.js
View
@@ -15,7 +15,7 @@
},
"dependencies": {
"nopt" : ">= 1.0.5",
- "generic-pool" : ">= 1.0.9",
+ "generic-pool" : ">= 2.0.2",
"node-syslog" : ">= 1.1.2",
"iconv" : ">= 1.1.3",
"ipaddr.js" : ">= 0.1.1",
View
@@ -227,7 +227,7 @@ exports.get_pool = function (server, port, host, connect_timeout, pool_timeout,
idleTimeoutMillis: pool_timeout * 1000,
log: function (str, level) {
level = (level === 'verbose') ? 'debug' : level;
- logger['log' + level]('[smtp_client_pool] ' + str);
+ logger['log' + level]('[smtp_client_pool] [' + name + '] ' + str);
}
});

0 comments on commit 48ef63c

Please sign in to comment.