[Pkg-javascript-commits] [node-ain2] 14/102: actually use the values of hostname and port
Jonas Smedegaard
js at moszumanska.debian.org
Tue Apr 29 11:59:45 UTC 2014
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository node-ain2.
commit d9d7654894ba212a83cb0b1174bc5b430b5192b4
Author: Patrick Huesler <patrick.huesler at gmail.com>
Date: Tue Aug 16 18:43:54 2011 +0200
actually use the values of hostname and port
---
index.js | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/index.js b/index.js
index 2976fd8..35fed67 100644
--- a/index.js
+++ b/index.js
@@ -154,10 +154,17 @@ SysLogger.prototype._send = function(message, severity) {
var message = new Buffer('<' + (this.facility * 8 + severity) + '>' +
getDate() + ' ' + this.hostname + ' ' +
this.tag + '[' + process.pid + ']:' + message);
- client.send(message, 0, message.length, 514, '127.0.0.1',
- function(err) {
- if (err) console.error('Can\'t connect to localhost:514');
- });
+ client.send(message,
+ 0,
+ message.length,
+ this.port,
+ this.hostname,
+ function(err) {
+ if(err){
+ console.error('Cannot connect to %s:%d', this.hostname, this.port);
+ }
+ }
+ );
client.close();
};
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-ain2.git
More information about the Pkg-javascript-commits
mailing list