logging: make silent errors actually silent
This commit is contained in:
parent
570a831172
commit
a09e92dd96
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user