Client logging undefined
This commit is contained in:
parent
b5d2cd0508
commit
eac2f95517
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue