logging: make silent errors actually silent

This commit is contained in:
Alice Gaudon 2020-11-04 12:52:07 +01:00
parent 570a831172
commit a09e92dd96

View File

@ -52,7 +52,7 @@ export default class LogRequestsComponent extends ApplicationComponent {
if (silent) {
if (err instanceof HttpError) logStr += ` ${err.errorCode}`;
logStr += ` ${err.name}`;
return req.log.error(err, logStr, additionalStr).requestId;
return req.log.info(err, logStr).requestId;
} else {
return req.log.error(err, logStr, additionalStr, err).requestId;
}