GH-72 s/debug/trace/g in client

This commit is contained in:
Mark Cavage 2012-04-26 20:47:03 -07:00
parent 59ea20ffa2
commit 3bcb74aa66
1 changed files with 7 additions and 7 deletions

View File

@ -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);
}
};