diff --git a/lib/server.js b/lib/server.js index 8b6f4cb..5b1c4be 100644 --- a/lib/server.js +++ b/lib/server.js @@ -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(); }