diff --git a/src/backend/middlewares/RenderingMWs.ts b/src/backend/middlewares/RenderingMWs.ts index a0f4b397..51d7292a 100644 --- a/src/backend/middlewares/RenderingMWs.ts +++ b/src/backend/middlewares/RenderingMWs.ts @@ -134,12 +134,11 @@ export class RenderingMWs { if (err.details) { const logFn = Logger.logLevelForError(err.code) - logFn('Handled error:'); - LoggerRouter.log(logFn, req, res); // use separate rendering for detailsStr const d = err.detailsStr; delete err.detailsStr; - logFn(err); + logFn('Handled error:\n', err); + LoggerRouter.log(logFn, req, res); err.detailsStr = d; delete err.details; // do not send back error object to the client side