Log errors with error log level instead of trace.
This commit is contained in:
parent
97ed537174
commit
5cd593a5ec
|
@ -303,7 +303,7 @@ function Server(options) {
|
||||||
log.trace('%s shutdown', c.ldap.id);
|
log.trace('%s shutdown', c.ldap.id);
|
||||||
});
|
});
|
||||||
c.addListener('error', function (err) {
|
c.addListener('error', function (err) {
|
||||||
log.warn('%s unexpected connection error', c.ldap.id, err);
|
log.error('%s unexpected connection error', c.ldap.id, err);
|
||||||
c.destroy();
|
c.destroy();
|
||||||
});
|
});
|
||||||
c.addListener('close', function (had_err) {
|
c.addListener('close', function (had_err) {
|
||||||
|
@ -377,7 +377,7 @@ function Server(options) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (err) {
|
if (err) {
|
||||||
log.trace('%s sending error: %s', req.logId, err.stack || err);
|
log.error('%s sending error: %s', req.logId, err.stack || err);
|
||||||
sendError(err);
|
sendError(err);
|
||||||
return after();
|
return after();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue