Log errors with error log level instead of trace.

This commit is contained in:
Pedro P. Candel 2012-09-10 09:09:50 +02:00
parent 97ed537174
commit 5cd593a5ec
1 changed files with 2 additions and 2 deletions

View File

@ -303,7 +303,7 @@ function Server(options) {
log.trace('%s shutdown', c.ldap.id);
});
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.addListener('close', function (had_err) {
@ -377,7 +377,7 @@ function Server(options) {
}
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);
return after();
}