Client logging undefined

This commit is contained in:
Mark Cavage 2011-11-28 10:39:07 -08:00
parent b5d2cd0508
commit eac2f95517
1 changed files with 3 additions and 3 deletions

View File

@ -802,7 +802,7 @@ Client.prototype._newConnection = function() {
log.trace('%s connect event', c.ldap.id);
c.ldap.connected = true;
c.ldap.id += ':' + c.fd;
c.ldap.id += c.fd ? (':' + c.fd) : '';
c.emit('connect', true);
});
c.setKeepAlive = function(enable, delay) {
@ -819,7 +819,7 @@ Client.prototype._newConnection = function() {
// Wrap the events
c.ldap = {
id: connectOpts.socketPath || self.url.hostname,
id: self.url ? self.url.hostname : connectOpts.socketPath,
messageID: 0,
messages: {}
};
@ -835,7 +835,7 @@ Client.prototype._newConnection = function() {
log.trace('%s connect event', c.ldap.id);
c.ldap.connected = true;
c.ldap.id += ':' + c.fd;
c.ldap.id += c.fd ? (':' + c.fd) : '';
self.emit('connect', c.ldap.id);
});