Merge pull request #90 from kusor/master
Use error log level to log errors
This commit is contained in:
commit
c56aa5b74f
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue