GH-72 s/debug/trace/g in client
This commit is contained in:
parent
59ea20ffa2
commit
3bcb74aa66
|
@ -182,7 +182,7 @@ function setupSocket(socket, opts) {
|
|||
});
|
||||
|
||||
socket.ldap.parser.on('error', function onParseError(err) {
|
||||
log.debug({err: err}, 'parser error event');
|
||||
log.trace({err: err}, 'parser error event');
|
||||
|
||||
if (opts.listeners('error').length)
|
||||
opts.emit('error', err);
|
||||
|
@ -774,8 +774,8 @@ Client.prototype._send = function _send(message, expect, emitter, callback) {
|
|||
if (timer)
|
||||
clearTimeout(timer);
|
||||
|
||||
if (log.debug())
|
||||
log.debug({msg: msg ? msg.json : null}, 'response received');
|
||||
if (log.trace())
|
||||
log.trace({msg: msg ? msg.json : null}, 'response received');
|
||||
|
||||
if (expect === 'abandon')
|
||||
return _done('end', null);
|
||||
|
@ -827,12 +827,12 @@ Client.prototype._send = function _send(message, expect, emitter, callback) {
|
|||
conn.ldap.messages[message.messageID] = messageCallback;
|
||||
|
||||
if (self.timeout) {
|
||||
log.debug('Setting timeout to %d', self.timeout);
|
||||
log.trace('Setting timeout to %d', self.timeout);
|
||||
timer = setTimeout(onRequestTimeout, self.timeout);
|
||||
}
|
||||
|
||||
if (log.debug())
|
||||
log.debug('sending request %j', message.json);
|
||||
if (log.trace())
|
||||
log.trace('sending request %j', message.json);
|
||||
|
||||
try {
|
||||
return conn.write(message.toBer(), writeCallback);
|
||||
|
@ -840,7 +840,7 @@ Client.prototype._send = function _send(message, expect, emitter, callback) {
|
|||
if (timer)
|
||||
clearTimeout(timer);
|
||||
|
||||
log.debug({err: e}, 'Error writing message to socket');
|
||||
log.trace({err: e}, 'Error writing message to socket');
|
||||
return callback(e);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue