Merge pull request #90 from kusor/master

Use error log level to log errors
This commit is contained in:
Mark Cavage 2012-09-11 07:49:43 -07:00
commit c56aa5b74f
1 changed files with 2 additions and 0 deletions

View File

@ -304,6 +304,7 @@ function Server(options) {
});
c.addListener('error', function (err) {
log.warn('%s unexpected connection error', c.ldap.id, err);
self.emit('clientError', err);
c.destroy();
});
c.addListener('close', function (had_err) {
@ -378,6 +379,7 @@ function Server(options) {
if (err) {
log.trace('%s sending error: %s', req.logId, err.stack || err);
self.emit('clientError', err);
sendError(err);
return after();
}