logging: prevent full logging of errors for silent logs
This commit is contained in:
parent
24d83c73ad
commit
1fce157104
@ -52,7 +52,7 @@ export default class LogRequestsComponent extends ApplicationComponent {
|
|||||||
if (silent) {
|
if (silent) {
|
||||||
if (err instanceof HttpError) logStr += ` ${err.errorCode}`;
|
if (err instanceof HttpError) logStr += ` ${err.errorCode}`;
|
||||||
logStr += ` ${err.name}`;
|
logStr += ` ${err.name}`;
|
||||||
return req.log.info(err, logStr).requestId;
|
return req.log.info(err.name, logStr).requestId;
|
||||||
} else {
|
} else {
|
||||||
return req.log.error(err, logStr, additionalStr, err).requestId;
|
return req.log.error(err, logStr, additionalStr, err).requestId;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user